#include <algorithm>
    output_iterator remove_copy( input_iterator start, input_iterator end, output_iterator result, const TYPE& val );

The remove_copy() algorithm copies the range [start,end) to result but omits any elements that are equal to val.

remove_copy() returns an iterator to the end of the new range, and runs in linear time.

Related Topics: copy, remove, remove_copy_if, remove_if