Erase the elements in the range [first, last)].
Synopsis
Declared in <bslstl_multiset.h>
multiset<KEY, COMPARATOR, ALLOCATOR>::iterator
erase(
const_iterator first,
const_iterator last);
Description
Remove from this 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. The behavior is undefined unless first and last either refer to elements in this multiset or are the end iterator, and the first position is at or before the last position in the ordered sequence provided by this container.
Return Value
last
Parameters
Name |
Description |
first |
beginning of the erase range |
last |
end of the erase range |
Created with MrDocs