[#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`. Erase the element referenced by the specified iterator. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#