Jump to content

C++ Language/Std/Stl/CollectionClasses/SortedCollections/Map/RemovingItems

From Wikibooks, open books for an open world

The erase() function removes an item from a map. You can give erase() either an iterator, or the key of the item that you want removed.

Additional information about removing items from a map (includes interactive examples)