Home | Libraries | People | FAQ | More |
template<class Container> Container& erase( Container& target, iterator_range<typename Container::iterator> to_erase);
erase
the iterator range
to_erase
from the container
target
.
remove_erase
performs
the frequently used combination equivalent to target.erase(std::remove(target.begin(), target.end(), value), target.end());
remove_erase_if
performs
the frequently used combination equivalent to target.erase(std::remove_if(target.begin(), target.end(), pred), target.end());
Defined in the header file boost/range/algorithm_ext/erase.hpp
Container
supports
erase of an iterator range.
Linear. Proprotional to distance(to_erase)
.