replace overloads
Declared in <llvm/ADT/STLExtras.h>
Replace occurrences of OldValue with NewValue in Range.
template<
typename R,
typename T>
void
replace(
R&& Range,
T const& OldValue,
T const& NewValue);
» more...
Replace []ContIt, ContEnd) in Cont with the elements of R.
template<
typename Container,
typename Range = std::initializer_list<Container::value_type>>
void
replace(
Container& Cont,
Container::iterator ContIt,
Container::iterator ContEnd,
Range&& R);
» more...
Replace []ContIt, ContEnd) in Cont with []ValIt, ValEnd).
template<
typename Container,
typename RandomAccessIterator>
void
replace(
Container& Cont,
Container::iterator ContIt,
Container::iterator ContEnd,
RandomAccessIterator ValIt,
RandomAccessIterator ValEnd);
» more...
| Name | Description |
|---|---|
| Range | Range whose elements are updated. |
| OldValue | Value to replace. |
| NewValue | Replacement value. |
| Cont | Sequence container to modify. |
| ContIt | Start of the destination subrange. |
| ContEnd | End of the destination subrange. |
| R | Replacement range. |
| ValIt | Start of the replacement values. |
| ValEnd | End of the replacement values. |