bsl::hash_map::erase

erase overloads

Synopses

Declared in <bslstp_hashmap.h>

Erase the element at the specified iterator position.

void
erase(iterator position);
» more...

Erase the element with the specified __key and return the count removed.

size_type
erase(key_type const& __key);
» more...

Erase the elements in the specified iterator range.

void
erase(
    iterator __f,
    iterator __l);
» more...

Return Value

number of elements erased

Parameters

NameDescription
positioniterator referring to the element to erase
__keykey of elements to erase
__fbeginning of the erased range
__lend of the erased range (exclusive)