[#BloombergLP-bdlc-FlatHashTable-erase-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable]::erase :relfileprefix: ../../../ :mrdocs: Remove from this table the object having the specified `key`, if it exists, and return 1; otherwise (there is no object with a key equal to `key` in this table) return 0 with no other effect. This method invalidates all iterators, and references to the removed element. == Synopsis Declared in `<bdlc_flathashtable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t erase(KEY const& key); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#