[#bsl-unordered_map-0bf-operator_subs-05] = xref:bsl.adoc[bsl]::xref:bsl/unordered_map-0bf.adoc[unordered_map<basic_string<char>, Json, TransparentHash, TransparentEqualTo>]::operator[] :relfileprefix: ../../ :mrdocs: Return a reference providing modifiable access to the mapped‐value associated with a key that is equivalent with the specified `key`; if this `map` does not already contain a `value_type` object having an equivalent key, first insert a new `value_type` object having the move‐inserted `key` and a default‐constructed `VALUE` object, and return a reference to the newly mapped (default) value. This method requires that the (template parameter) type `KEY` be `move‐insertable` into this map and the (template parameter) type `VALUE` be `default‐insertable` into this map (see {Requirements on `KEY` and `VALUE`}). == Synopsis Declared in `<bslstl_unorderedmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> xref:bsl/add_lvalue_reference-040/type.adoc[add_lvalue_reference<Json>::type] operator[](LOOKUP_KEY&& key) requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value; ---- == Description Note: implemented inline due to Sun CC compilation error. [.small]#Created with https://www.mrdocs.com[MrDocs]#