[#bsl-hash_multimap-erase-066]
= xref:bsl.adoc[bsl]::xref:bsl/hash_multimap.adoc[hash&lowbar;multimap]::erase
:relfileprefix: ../../
:mrdocs:

`erase` overloads

== Synopses

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

Erase the element referenced by the specified iterator&period;


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

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

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


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

[.small]#xref:bsl/hash_multimap/erase-064.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_multimap/erase-00.adoc[erase](
    xref:bsl/hash_multimap/iterator.adoc[iterator] &lowbar;&lowbar;f,
    xref:bsl/hash_multimap/iterator.adoc[iterator] &lowbar;&lowbar;l);
----

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


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