[#bsl-unordered_multimap-0b0-erase-09a] = xref:bsl.adoc[bsl]::xref:bsl/unordered_multimap-0b0.adoc[unordered_multimap]::erase :relfileprefix: ../../ :mrdocs: Remove from this unordered multimap all `value_type` objects with a key equivalent to the specified `key`, if such exist, and return the number of objects erased; otherwise, if there are no `value_type` objects with a key equivalent to `key`, return 0 with no other effect. This method invalidates only iterators and references to the removed element and previously saved values of the `end()` iterator, and preserves the relative order of the elements not removed. == Synopsis Declared in `<bslstl_unorderedmultimap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/unordered_multimap-0b0/size_type.adoc[unordered_multimap<KEY, VALUE, HASH, EQUAL, ALLOCATOR>::size_type] erase(xref:bsl/unordered_multimap-0b0/key_type.adoc[key_type] const& key); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#