[#bsl-hashtable-erase-09] = xref:bsl.adoc[bsl]::xref:bsl/hashtable.adoc[hashtable]::erase :relfileprefix: ../../ :mrdocs: `erase` overloads == Synopses Declared in `<bslstp_hashtable.h>` Erase the element referenced by the specified `__it`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/hashtable/erase-08.adoc[erase](xref:bsl/hashtable/const_iterator.adoc[const_iterator] const& __it); ---- [.small]#xref:bsl/hashtable/erase-08.adoc[_» more..._]# Erase elements matching the specified key and return the count removed. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hashtable/size_type.adoc[size_type] xref:bsl/hashtable/erase-0c.adoc[erase](xref:bsl/hashtable/key_type.adoc[key_type] const& __key); ---- [.small]#xref:bsl/hashtable/erase-0c.adoc[_» more..._]# Erase the elements in the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/hashtable/erase-00.adoc[erase]( xref:bsl/hashtable/const_iterator.adoc[const_iterator] __first, xref:bsl/hashtable/const_iterator.adoc[const_iterator] __last); ---- [.small]#xref:bsl/hashtable/erase-00.adoc[_» more..._]# == Return Value number of elements erased == Parameters [cols="1,4"] |=== | Name| Description | *__it* | iterator referring to the element to erase | *__key* | key of elements to erase | *__first* | beginning of the erased range | *__last* | end of the erased range (exclusive) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#