remove_copy_if [C++ Reference]
Keywords: stl,algorithm,remove_copy_if
Date: 2009-10-09T01:24:00-0700

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

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

## remove_copy_if

Syntax:

        #include <algorithm>
        output_iterator remove_copy_if( input_iterator start, input_iterator end, output_iterator result, Predicate p );

The remove_copy_if() function copies the range of elements [start,end) to result, omitting any elements for which the predicate function p returns true. The return value of remove_copy_if() is an iterator the end of the new range.

remove_copy_if() runs in linear time.

Related Topics: remove, remove_copy, remove_if

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