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

Remove from this table the object at the specified `position`, and return an 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 table&period; This method invalidates all iterators, and references to the removed element&period; The behavior is undefined unless `position` refers to an object in this table&period;

== Synopsis

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

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


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