[#BloombergLP-bdlc-FlatHashTable-operator_subs] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable]::operator[] :relfileprefix: ../../../ :mrdocs: Return a reference to the entry for `key`, inserting one if needed. == Synopsis Declared in `<bdlc_flathashtable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class KEY_TYPE> ENTRY& operator[](KEY_TYPE&& key); ---- == Description If an entry with the specified `key` is not already present in this table, insert an entry having the value defined by `ENTRY_UTIL::construct`; otherwise, this method has no effect. Return an iterator referring to the (possibly newly inserted) object in this table with the `key`. == Return Value reference to the entry for `key` == Parameters [cols="1,4"] |=== | Name| Description | *key* | key of the entry to find or insert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#