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

Erase the element at the specified `position`&period;

== Synopsis

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

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

== Description

Return an iterator referring to the modifiable 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 map&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 map&period;

== Return Value

iterator following the erased element

== Parameters

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


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