Erase the first element found with the specified key.

Synopsis

Declared in <bdlcc_stripedunorderedcontainerimpl.h>

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

Description

Return the number of elements erased. Note that method is more performant than eraseAll when there is one element having key.

Return Value

number of elements erased

Parameters

Name

Description

key

key of the element to erase

Created with MrDocs