[#BloombergLP-bdlc-FlatHashSet-erase-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet]::erase :relfileprefix: ../../../ :mrdocs: Remove the elements in the half‐open iterator range. == 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); ---- == Description 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. == Return Value iterator equal to `last` == Parameters [cols="1,4"] |=== | Name| Description | *first* | beginning of the range to erase | *last* | end of the range to erase (exclusive) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#