[#BloombergLP-bdlc-FlatHashSet-erase-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet]::erase
:relfileprefix: ../../../
:mrdocs:

Remove the element at the specified `position`&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] position);
----

== Description

Remove from this set the element at the specified `position`, and return a `const&lowbar;iterator` referring to the element immediately following the removed element, or to the past&hyphen;the&hyphen;end position if the removed element was the last element in the sequence of elements maintained by this set&period; This method invalidates all iterators and references to the removed element&period; The behavior is undefined unless `position` refers to an element in this set&period;

== Return Value

iterator following the erased element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *position*
| iterator to the element to remove
|===


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