[#bsl-hash_map-erase-0a] = xref:bsl.adoc[bsl]::xref:bsl/hash_map.adoc[hash_map]::erase :relfileprefix: ../../ :mrdocs: `erase` overloads == Synopses Declared in `<bslstp_hashmap.h>` Erase the element at the specified iterator position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/hash_map/erase-04.adoc[erase](xref:bsl/hash_map/iterator.adoc[iterator] position); ---- [.small]#xref:bsl/hash_map/erase-04.adoc[_» more..._]# Erase the element with the specified `__key` and return the count removed. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_map/size_type.adoc[size_type] xref:bsl/hash_map/erase-03.adoc[erase](xref:bsl/hash_map/key_type.adoc[key_type] const& __key); ---- [.small]#xref:bsl/hash_map/erase-03.adoc[_» more..._]# Erase the elements in the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/hash_map/erase-0e.adoc[erase]( xref:bsl/hash_map/iterator.adoc[iterator] __f, xref:bsl/hash_map/iterator.adoc[iterator] __l); ---- [.small]#xref:bsl/hash_map/erase-0e.adoc[_» more..._]# == Return Value number of elements erased == Parameters [cols="1,4"] |=== | Name| Description | *position* | iterator referring to the element to erase | *__key* | key of elements to erase | *__f* | beginning of the erased range | *__l* | end of the erased range (exclusive) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#