[#bsl-erase_if-0aa]
= xref:bsl.adoc[bsl]::erase&lowbar;if
:relfileprefix: ../
:mrdocs:

Erase every element of `m` that satisfies `predicate`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;unorderedmultimap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class VALUE,
    class HASH,
    class EQUAL,
    class ALLOCATOR,
    class PREDICATE&gt;
bsl::unordered&lowbar;multimap&lt;KEY, VALUE, HASH, EQUAL, ALLOCATOR&gt;::size&lowbar;type
erase&lowbar;if(
    xref:bsl/unordered_multimap-0b0.adoc[unordered&lowbar;multimap&lt;KEY, VALUE, HASH, EQUAL, ALLOCATOR&gt;]& m,
    PREDICATE predicate);
----

== Description

Erase all the elements in the specified unordered&lowbar;multimap `m` that satisfy the specified predicate `predicate`&period; Return the number of elements erased&period;

== Return Value

number of elements erased

== Parameters

[cols="1,4"]
|===
| Name| Description
| *m*
| unordered multimap from which matching elements are erased
| *predicate*
| unary predicate selecting elements to erase
|===


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