[#BloombergLP-bdlc-FlatHashMap-erase-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap]::erase :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<bdlc_flathashmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/FlatHashMap/iterator.adoc[FlatHashMap<KEY, VALUE, HASH, EQUAL>::iterator] erase( xref:BloombergLP/bdlc/FlatHashMap/const_iterator.adoc[const_iterator] first, xref:BloombergLP/bdlc/FlatHashMap/const_iterator.adoc[const_iterator] last); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#