remove
Syntax:
#include <algorithm> iterator remove( iterator start, iterator end, const TYPE& val );
The remove() algorithm removes all of the elements in the range [start,end) that are equal to val.
The return value of this function is an iterator to the last element of the new sequence that should contain no elements equal to val.
The remove() function runs in linear time.
Related topics: