Standard C++ Library Class Reference

Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
remove
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 T>
ForwardIterator
remove (ForwardIterator first,
ForwardIterator last,
const T& value);
Description
The remove algorithm eliminates all the elements referred to by iterator i in the range [first,
last) for which the following condition holds: *i == value. remove returns an iterator that