[#BloombergLP-bdlc-FlatHashSet-erase-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet]::erase :relfileprefix: ../../../ :mrdocs: Remove from this set the element at the specified `position`, and return a `const_iterator` referring to the element immediately following the removed element, or to the past‐the‐end position if the removed element was the last element in the sequence of elements maintained by this set. This method invalidates all iterators and references to the removed element. The behavior is undefined unless `position` refers to an element in this set. == 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] position); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#