[#BloombergLP-bdlcc-StripedUnorderedMultiMap-eraseFirstIf]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedMultiMap.adoc[StripedUnorderedMultiMap]::eraseFirstIf
:relfileprefix: ../../../
:mrdocs:

Erase the first element with `key` for which `predicate` is true&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;stripedunorderedmultimap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
eraseFirstIf(
    KEY const& key,
    xref:BloombergLP/bdlcc/StripedUnorderedMultiMap/EraseIfValuePredicate.adoc[EraseIfValuePredicate] const& predicate);
----

== Description

Return the number of elements erased&period;

== Return Value

number of elements erased

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key whose matching elements may be erased
| *predicate*
| returns `true` for values that should be erased
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
