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

Remove the entry with the specified `key`, if present&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
erase(KEY const& key);
----

== Description

Remove from this table the object having the specified `key`, if it exists, and return 1&semi; otherwise (there is no object with a key equal to `key` in this table) return 0 with no other effect&period; This method invalidates all iterators, and references to the removed element&period;

== Return Value

1 if an entry was erased, and 0 otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key of the entry to remove
|===


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