remove_copy

The function remove_copy is used remove elements that do not match a value during a copy.

  template<class InputIterator, class OutputIterator, class T>
  OutputIterator remove_copy
  (InputIterator first, InputIterator last,
  OutputIterator result, const T& value);
  
Remarks

The end of the resulting range is returned.