bsl::unordered_map::erase

Erase the element at position.

Synopsis

Declared in <bslstl_unorderedmap.h>

iterator
erase(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. The behavior is undefined unless position refers to a value_type object in this unordered map.

Return Value

iterator following the erased element

Parameters

NameDescription
positioniterator to the element to erase