Erase the element having the specified key.

Synopsis

Declared in <bdlcc_stripedunorderedmap.h>

std::size_t
erase(KEY const& key);

Description

Return 1 on success and 0 if key does not exist. Note that the returned value equals the number of elements removed.

Return Value

1 on success, and 0 if key does not exist

Parameters

Name

Description

key

key of the element to erase

Created with MrDocs