[#BloombergLP-bdlcc-StripedUnorderedContainerImpl-eraseFirstIf] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl.adoc[StripedUnorderedContainerImpl]::eraseFirstIf :relfileprefix: ../../../ :mrdocs: Erase from this hash map the _first_ element with specified `key` (of possibly many) found, for which the specified `predicate` holds true. Return the number of elements erased. == Synopsis Declared in `<bdlcc_stripedunorderedcontainerimpl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t eraseFirstIf( KEY const& key, xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/EraseIfValuePredicate.adoc[EraseIfValuePredicate] const& predicate); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#