[#bsl-hash_multiset-erase-07f2]
= xref:bsl.adoc[bsl]::xref:bsl/hash_multiset.adoc[hash&lowbar;multiset]::erase
:relfileprefix: ../../
:mrdocs:

Erase the element with the specified `&lowbar;&lowbar;key` and return the count removed&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;hashset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type]
erase(xref:bsl/hash_multiset/key_type.adoc[key&lowbar;type] const& &lowbar;&lowbar;key);
----


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