Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
array::erase (2 of 2 overloads)

Erase elements from the container.

Synopsis
iterator
erase(
    const_iterator first,
    const_iterator last);
Description

The elements in the range {first, last) are removed.

Complexity

Linear in std::distance(first, last) + std::distance(pos, end())

Exception Safety

No-throw guarantee.

Parameters

Name

Description

first

An iterator pointing to the first element to erase, or pointing to the end of the range.

last

An iterator pointing to one past the last element to erase, or pointing to the end of the range.

Return Value

Iterator following the last removed element. If the iterator pos refers to the last element, the end() iterator is returned.


PrevUpHomeNext