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