[#BloombergLP-bdlc-FlatHashTable-erase-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable]::erase :relfileprefix: ../../../ :mrdocs: Remove from this table the objects starting at the specified `first` position up to, but not including, the specified `last` position, and return `last`. This method invalidates all iterators, and references to the removed element. The behavior is undefined unless `first` and `last` either refer to elements in this table or are the `end` iterator, and the `first` position is at or before the `last` position in the iteration sequence provided by this container. == Synopsis Declared in `<bdlc_flathashtable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/FlatHashTable/iterator.adoc[FlatHashTable<KEY, ENTRY, ENTRY_UTIL, HASH, EQUAL>::iterator] erase( xref:BloombergLP/bdlc/FlatHashTable/const_iterator.adoc[const_iterator] first, xref:BloombergLP/bdlc/FlatHashTable/const_iterator.adoc[const_iterator] last); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#