Erase the element whose key is equivalent to key.

Synopsis

Declared in <bslstl_map.h>

Description

Remove from this map the value_type object whose key is equivalent the specified key, if such an entry exists, and return 1; otherwise, if there is no value_type object having an equivalent key, return 0 with no other effect. This method invalidates only iterators and references to the removed element and previously saved values of the end() iterator.

Return Value

1 if an element was erased, otherwise 0

Parameters

Name

Description

key

key whose matching element is erased

Created with MrDocs