[#bsl-hash_multiset-erase-07f2] = xref:bsl.adoc[bsl]::xref:bsl/hash_multiset.adoc[hash_multiset]::erase :relfileprefix: ../../ :mrdocs: Erase the element with the specified `__key` and return the count removed. == Synopsis Declared in `<bslstp_hashset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_multiset/size_type.adoc[size_type] erase(xref:bsl/hash_multiset/key_type.adoc[key_type] const& __key); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#