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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class HASH,
    class EQUAL,
    class ALLOCATOR,
    class PREDICATE&gt;
bsl::unordered&lowbar;multiset&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;::size&lowbar;type
erase&lowbar;if(
    xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;]& ms,
    PREDICATE predicate);
----


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