[#BloombergLP-bdlc-FlatHashMap-operator_subs-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap]::operator[] :relfileprefix: ../../../ :mrdocs: Return a modifiable reference to the mapped value for `key`. == Synopsis Declared in `<bdlc_flathashmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- VALUE& operator[](KEY const& key); ---- == Description Return a reference providing modifiable access to the mapped value associated with the specified `key` in this map. If this map does not already contain an element having `key`, insert an element with the `key` and a default‐constructed `VALUE`, and return a reference to the newly mapped value. If `key` is movable, `key` is left in a (valid) unspecified state. == Return Value modifiable reference to the mapped value for `key` == Parameters [cols="1,4"] |=== | Name| Description | *key* | key whose mapped value is accessed |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#