(1) iterator erase( iterator pos ); (until C++11) iterator erase( const_iterator pos ); (since C++11) (2) iterator erase( iterator first, iterator last ); (until C++11) iterator erase( const_iterator first, const_iterator last ); (since C++11)
Removes specified elements from the container.
1) Removes the element at pos.
2) Removes the elements in the range [first; last).
Invalidates iterators and references at or after the point of the erase, including the end() iter