Copy Range to Out, replacing elements for which P is true.
Synopsis
Declared in <llvm/ADT/STLExtras.h>
template<
typename R,
typename OutputIt,
typename UnaryPredicate,
typename T>
OutputIt
replace_copy_if(
R&& Range,
OutputIt Out,
UnaryPredicate P,
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. |
P |
Unary predicate selecting elements to replace. |
NewValue |
Replacement value for matching elements. |
Created with MrDocs