[#BloombergLP-bdlcc-StripedUnorderedMap-eraseIf]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedMap.adoc[StripedUnorderedMap]::eraseIf
:relfileprefix: ../../../
:mrdocs:

Remove the element with `key` if `predicate` holds true&period;

== Synopsis

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

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

== Description

Return the number of elements erased&period;

== Return Value

the number of elements erased

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key of the element that may be erased
| *predicate*
| returns `true` for a value that should be erased
|===


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