This topic is in the Visual C++ documentation as a nonfunctional example of containers used in the C++ Standard Library. For more information, see C++ Standard Library Containers.
Erases an element.
iterator erase( iterator _Where); iterator erase( iterator first, iterator last);
The first member function removes the element of the controlled sequence pointed to by _Where. The second member function removes the elements of the controlled sequence in the range [
last). Both return an iterator that designates the first element remaining beyond any elements removed, or end if no such element exists.
The member functions throw an exception only if a copy operation throws an exception.