[#bsl-hashtable-erase-09]
= xref:bsl.adoc[bsl]::xref:bsl/hashtable.adoc[hashtable]::erase
:relfileprefix: ../../
:mrdocs:

`erase` overloads

== Synopses

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

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


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

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

Erase elements matching the specified key and return the count removed&period;


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

[.small]#xref:bsl/hashtable/erase-0c.adoc[_» more&period;&period;&period;_]#

Erase the elements in the specified iterator range&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/hashtable/erase-00.adoc[erase](
    xref:bsl/hashtable/const_iterator.adoc[const&lowbar;iterator] &lowbar;&lowbar;first,
    xref:bsl/hashtable/const_iterator.adoc[const&lowbar;iterator] &lowbar;&lowbar;last);
----

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


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