Erase the half‐open range [first, last)] from this map.
Synopsis
Declared in <bslstl_map.h>
map<KEY, VALUE, COMPARATOR, ALLOCATOR>::iterator
erase(
const_iterator first,
const_iterator last);
Description
Remove from this map the value_type objects starting at the specified first position up to, but 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 map 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 |
iterator to the first element to erase |
last |
iterator past the last element to erase |
Created with MrDocs