Description
remove_copy() copies elements that do not match a specified value from an input sequence to an output sequence, leaving the input sequence unchanged.
Declaration
template <class In, class Out, class T> Out remove_copy(In, In, Out, const T&);
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. The input sequence is unchanged, and the values 1 3 1 are printed.
Supported
Supported
Supported