Description
remove_copy_if() copies elements that do not match a user-defined predicate from an input sequence to an output sequence, leaving the input sequence unchanged.
Declaration
template <class In, class Out, class Pred> Out remove_copy_if(In, In, Out, Pred);
Concept
The sample sets up an integer vector, and then creates a new sequence of those elements in the input sequence that do not have the value 5. A user-supplied predicate is used to screen values. The input sequence is unchanged, and the values 1 3 1 are printed.
Supported
Supported
Supported