BloombergLP::bdlcc::StripedUnorderedMap::eraseIf

Remove the element with key if predicate holds true.

Synopsis

Declared in <bdlcc_stripedunorderedmap.h>

std::size_t
eraseIf(
    KEY const& key,
    EraseIfValuePredicate const& predicate);

Description

Return the number of elements erased.

Return Value

the number of elements erased

Parameters

NameDescription
keykey of the element that may be erased
predicatereturns true for a value that should be erased