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

`erase` overloads

== Synopses

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

Erase the element referenced by the specified `&lowbar;&lowbar;it`&period; Erase the element referenced by the specified iterator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/hash_multiset/erase-09.adoc[erase](xref:bsl/hash_multiset/iterator.adoc[iterator] &lowbar;&lowbar;it);
----

[.small]#xref:bsl/hash_multiset/erase-09.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:bsl/hash_multiset/erase-07f2.adoc[_» more&period;&period;&period;_]#

Erase the elements in the specified iterator range&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/hash_multiset/erase-02.adoc[erase](
    xref:bsl/hash_multiset/iterator.adoc[iterator] &lowbar;&lowbar;f,
    xref:bsl/hash_multiset/iterator.adoc[iterator] &lowbar;&lowbar;l);
----

[.small]#xref:bsl/hash_multiset/erase-02.adoc[_» more&period;&period;&period;_]#


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