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

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

== Synopsis

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

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


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