remove_copy [C++ Reference]
Keywords: stl,algorithm,remove_copy
Date: 2009-10-09T01:23:16-0700

[[remove_copy]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## remove_copy

Syntax:

        #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

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •