Standard C++ Library Class Reference
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
remove_if
 Algorithm
Summary
Move desired elements to the front of a container, and return an iterator that describes where the
sequence of desired elements ends.
Contents
Synopsis● 
Description● 
Complexity● 
Example● 
Warning● 
See Also● 
Synopsis
#include <algorithm>
template <class ForwardIterator, class Predicate>
ForwardIterator remove_if (ForwardIterator first,
 ForwardIterator last,
 Predicate pred);
Description
The remove_if algorithm eliminates all the elements referred to by iterator i in the range [first,
last) for which the following corresponding condition holds: pred(*i) == true. remove_if returns
the end of the resulting range. remove_if is stable, that is, the relative order of the elements that










