...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Remove a field.
const_iterator erase( const_iterator pos);
References and iterators to the erased elements are invalidated. Other references and iterators are not affected.
Name |
Description |
---|---|
|
An iterator to the element to remove. |
An iterator following the last removed element. If the iterator refers
to the last element, the end()
iterator is returned.