remove_if [C++ Reference]
Keywords: stl,list,remove_if
Date: 2009-02-06T08:35:46-0800

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

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## remove_if

Syntax:

        #include <list>
        void remove_if( UnPred pr );

The remove_if() function removes all elements from the list for which the unary predicate pr is true.

remove_if() runs in linear time.

Related Topics: erase, remove, unique

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