[#bsl-unordered_multiset-06c-erase-01]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset]::erase
:relfileprefix: ../../
:mrdocs:

Same as the preceding overload, using a transparent key type&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;KEY&gt;
xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type]
erase(t&lowbar;KEY&& key)
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;HASH, t&lowbar;KEY&gt;&colon;&colon;value &amp;&amp;
        BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;EQUAL,t&lowbar;KEY&gt;&colon;&colon;value &amp;&amp;
        !is&lowbar;convertible&lt;BSLS&lowbar;COMPILERFEATURES&lowbar;FORWARD&lowbar;REF(t&lowbar;KEY),
                        iterator&gt;&colon;&colon;value &amp;&amp;
        !is&lowbar;convertible&lt;BSLS&lowbar;COMPILERFEATURES&lowbar;FORWARD&lowbar;REF(t&lowbar;KEY),
                        const&lowbar;iterator&gt;&colon;&colon;value;
----

== Return Value

number of elements erased

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key value of elements to erase
|===


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