Copy Range to Out, replacing OldValue with NewValue.
Declared in <llvm/ADT/STLExtras.h>
template<
typename R,
typename OutputIt,
typename T>
OutputIt
replace_copy(
R&& Range,
OutputIt Out,
T const& OldValue,
T const& NewValue);
Output iterator past the last written element.
| Name | Description |
|---|---|
| Range | Range to copy from. |
| Out | Output iterator receiving the results. |
| OldValue | Value to replace. |
| NewValue | Replacement value. |