Copy Range to Out, replacing OldValue with NewValue.

Synopsis

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);

Return Value

Output iterator past the last written element.

Parameters

Name

Description

Range

Range to copy from.

Out

Output iterator receiving the results.

OldValue

Value to replace.

NewValue

Replacement value.

Created with MrDocs