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

Remove the entries in the half&hyphen;open range `&lsqb;first, last)&rsqb;`&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] first,
    xref:BloombergLP/bdlc/FlatHashTable/const_iterator.adoc[const&lowbar;iterator] last);
----

== Description

Remove from this table the objects 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 element&period; The behavior is undefined unless `first` and `last` either refer to elements in this table or are the `end` iterator, and the `first` position is at or before the `last` position in the iteration sequence provided by this container&period;

== Return Value

iterator equal to `last`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *first*
| beginning of the range to erase
| *last*
| end of the range to erase
|===


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