[#bsl-multiset-03-erase-02] = xref:bsl.adoc[bsl]::xref:bsl/multiset-03.adoc[multiset]::erase :relfileprefix: ../../ :mrdocs: Remove from this multiset the `value_type` object at the specified `position`, and return an iterator referring to the element immediately following the removed element, or to the past‐the‐end position if the removed element was the last element in the sequence of elements maintained by this multiset. This method invalidates only iterators and references to the removed element and previously saved values of the `end()` iterator. The behavior is undefined unless `position` refers to a `value_type` object in this multiset. == Synopsis Declared in `<bslstl_multiset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/multiset-03/iterator.adoc[multiset<KEY, COMPARATOR, ALLOCATOR>::iterator] erase(xref:bsl/multiset-03/const_iterator.adoc[const_iterator] position); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#