[#BloombergLP-bdlc-FlatHashSet-erase-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet]::erase :relfileprefix: ../../../ :mrdocs: Remove from this set the elements 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 elements. The behavior is undefined unless `first` and `last` are valid iterators on this set, and the `first` position is at or before the `last` position in the iteration sequence provided by this container. == Synopsis Declared in `<bdlc_flathashset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/FlatHashSet/const_iterator.adoc[FlatHashSet<KEY, HASH, EQUAL>::const_iterator] erase( xref:BloombergLP/bdlc/FlatHashSet/const_iterator.adoc[const_iterator] first, xref:BloombergLP/bdlc/FlatHashSet/const_iterator.adoc[const_iterator] last); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#