[#BloombergLP-bdlc-FlatHashMap-operator_subs-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap]::operator[] :relfileprefix: ../../../ :mrdocs: Subscript operators == Synopses Declared in `<bdlc_flathashmap.h>` 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- VALUE& xref:BloombergLP/bdlc/FlatHashMap/operator_subs-06.adoc[operator[]](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<KEY>] key); ---- [.small]#xref:BloombergLP/bdlc/FlatHashMap/operator_subs-06.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- VALUE& xref:BloombergLP/bdlc/FlatHashMap/operator_subs-05.adoc[operator[]](KEY const& key); ---- [.small]#xref:BloombergLP/bdlc/FlatHashMap/operator_subs-05.adoc[_» more..._]# Return a reference providing modifiable access to the mapped value associated with the a key equivalent to the specified `key` in this map. If this map does not already contain an element eqivalent to `key`, insert an element with the KEY constructed from `std::forward<LOOKUP_KEY>(k)` and a default‐constructed `VALUE`, and return a reference to the newly mapped value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> VALUE& xref:BloombergLP/bdlc/FlatHashMap/operator_subs-09.adoc[operator[]](LOOKUP_KEY&& key) requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value; ---- [.small]#xref:BloombergLP/bdlc/FlatHashMap/operator_subs-09.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#