stl:algorithm:remove

C++ Reference

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 after the last element of the new sequence that should contain no elements equal to val.

The remove() function runs in linear time.

Related Topics: remove_copy, remove_copy_if, remove_if, unique, unique_copy