Description
replace_copy_if() creates a new sequence from an existing sequence, replacing sequence values with new ones according to whether a specified predicate is true. The input sequence is unchanged by the copy operation.
Declaration
template <class Iter, class Out, class Pred, class T> Out replace_copy_if(Iter, Iter, Out, Pred, const T&);
Concept
The example program sets up a three-long vector of strings, and then replaces strings that start with the letter a with an empty string. A new vector is created for output.
Supported
Supported
Supported