Erase the element at position.
Synopsis
Declared in <bslstl_unorderedmap.h>
iterator
erase(const_iterator position);
Description
Remove from this unordered map the value_type object at the specified position, and return an iterator referring to the element immediately following the removed element, or to the past‐the‐end position if the removed element was the last element in the sequence of elements maintained by this unordered map. This method invalidates only iterators and references to the removed element and previously saved values of the end() iterator, and preserves the relative order of the elements not removed. The behavior is undefined unless position refers to a value_type object in this unordered map.
Return Value
iterator following the erased element
Parameters
Name |
Description |
position |
iterator to the element to erase |
Created with MrDocs