[#bsl-unordered_multiset-06c-erase-02] = xref:bsl.adoc[bsl]::xref:bsl/unordered_multiset-06c.adoc[unordered_multiset]::erase :relfileprefix: ../../ :mrdocs: Remove from unordered multiset the `value_type` objects starting at the specified `first` position up to, but not including the specified `last` position, and return `last`. 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. The behavior is undefined unless `first` and `last` either refer to elements in this unordered multiset or are the `end` iterator, and the `first` position is at or before the `last` position in the sequence provided by this container. == Synopsis Declared in `<bslstl_unorderedmultiset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/unordered_multiset-06c/iterator.adoc[unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>::iterator] erase( xref:bsl/unordered_multiset-06c/const_iterator.adoc[const_iterator] first, xref:bsl/unordered_multiset-06c/const_iterator.adoc[const_iterator] last); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#