[#bsl-hash_set-erase-05] = xref:bsl.adoc[bsl]::xref:bsl/hash_set.adoc[hash_set]::erase :relfileprefix: ../../ :mrdocs: `erase` overloads == Synopses Declared in `<bslstp_hashset.h>` Erase the element referenced by the specified `__it`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/hash_set/erase-09.adoc[erase](xref:bsl/hash_set/iterator.adoc[iterator] __it); ---- [.small]#xref:bsl/hash_set/erase-09.adoc[_» more..._]# Erase the element with the specified `__key` and return the count removed. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_set/size_type.adoc[size_type] xref:bsl/hash_set/erase-06.adoc[erase](xref:bsl/hash_set/key_type.adoc[key_type] const& __key); ---- [.small]#xref:bsl/hash_set/erase-06.adoc[_» more..._]# Erase the elements in the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/hash_set/erase-0b.adoc[erase]( xref:bsl/hash_set/iterator.adoc[iterator] __f, xref:bsl/hash_set/iterator.adoc[iterator] __l); ---- [.small]#xref:bsl/hash_set/erase-0b.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 the element(s) to erase | *__f* | beginning of the erased range | *__l* | end of the erased range (exclusive) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#