...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Erase elements from the container.
array::iterator
erase(array::const_iterator
pos) noexcept;
The element at pos
is
removed.
Constant plus linear in std::distance(pos, end())
No-throw guarantee.
Name |
Description |
---|---|
|
Iterator to the element to remove |
Iterator following the last removed element. If the iterator pos
refers to the last element, the
end()
iterator is returned.