Erase the elements in the half‐open range [first, last)].
Synopsis
Declared in <bdlc_flathashmap.h>
FlatHashMap<KEY, VALUE, HASH, EQUAL>::iterator
erase(
const_iterator first,
const_iterator last);
Description
Remove from this map the elements starting at the specified first position up to, but not including, the specified last position, and return an iterator referencing the same element as last. This method invalidates all iterators and references to the removed elements. The behavior is undefined unless first and last are valid iterators on this map, and the first position is at or before the last position in the iteration sequence provided by this container.
Return Value
iterator equal to last
Parameters
Name |
Description |
first |
beginning of the erase range |
last |
end of the erase range (exclusive) |
Created with MrDocs