[#bsl-unordered_multimap-0b0-erase-0bb] = xref:bsl.adoc[bsl]::xref:bsl/unordered_multimap-0b0.adoc[unordered_multimap]::erase :relfileprefix: ../../ :mrdocs: Erase the half‐open range `[first, last)]` and return `last`. == Synopsis Declared in `<bslstl_unorderedmultimap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/unordered_multimap-0b0/iterator.adoc[unordered_multimap<KEY, VALUE, HASH, EQUAL, ALLOCATOR>::iterator] erase( xref:bsl/unordered_multimap-0b0/const_iterator.adoc[const_iterator] first, xref:bsl/unordered_multimap-0b0/const_iterator.adoc[const_iterator] last); ---- == Description Remove from this unordered multimap 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 multimap or are the `end` iterator, and the `first` position is at or before the `last` position in the sequence provided by this container. == Return Value `last` == Parameters [cols="1,4"] |=== | Name| Description | *first* | beginning of the erase range | *last* | end of the erase range (one past last) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#