Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
erase
Prototype

template<
    class Container,
    class SinglePassRange
    >
void erase(Container& target,
           iterator_range<typename Container::iterator> to_erase);

Description

erase the iterator range to_erase from the container target.

Definition

Defined in the header file boost/range/algorithm_ext/erase.hpp

Requirements
  1. Container supports erase of an iterator range.
Complexity

Linear. Proprotional to distance(to_erase).


PrevUpHomeNext