Description
remove() removes elements from a sequence in place, compacting the sequence as it goes. An iterator referencing the end of the compacted sequence is returned.
Declaration
template <class For, class T> For remove(For, For, const T&);
Concept
The sample program sets up a vector of integers, and then removes the elements with value 5 from the vector. An iterator to the new end of the compacted vector is returned, and the values 1 3 1 are displayed.
Supported
Supported
Supported