[#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`&period; This method invalidates all iterators and references to the removed elements&period; 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&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;flathashset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlc/FlatHashSet/const_iterator.adoc[FlatHashSet&lt;KEY, HASH, EQUAL&gt;::const&lowbar;iterator]
erase(
    xref:BloombergLP/bdlc/FlatHashSet/const_iterator.adoc[const&lowbar;iterator] first,
    xref:BloombergLP/bdlc/FlatHashSet/const_iterator.adoc[const&lowbar;iterator] last);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
