[#bsl-unordered_map-0bf-operator_subs-05]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-0bf.adoc[unordered&lowbar;map&lt;basic&lowbar;string&lt;char&gt;, Json, TransparentHash, TransparentEqualTo&gt;]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

Return a reference providing modifiable access to the mapped&hyphen;value associated with a key that is equivalent with the specified `key`&semi; if this `map` does not already contain a `value&lowbar;type` object having an equivalent key, first insert a new `value&lowbar;type` object having the move&hyphen;inserted `key` and a default&hyphen;constructed `VALUE` object, and return a reference to the newly mapped (default) value&period; This method requires that the (template parameter) type `KEY` be `move&hyphen;insertable` into this map and the (template parameter) type `VALUE` be `default&hyphen;insertable` into this map (see &lcub;Requirements on `KEY` and `VALUE`&rcub;)&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;unorderedmap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
xref:bsl/add_lvalue_reference-040/type.adoc[add&lowbar;lvalue&lowbar;reference&lt;Json&gt;::type]
operator&lsqb;&rsqb;(LOOKUP&lowbar;KEY&& key)
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;HASH, LOOKUP&lowbar;KEY&gt;&colon;&colon;value
        &amp;&amp; BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;EQUAL,LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----

== Description

Note&colon; implemented inline due to Sun CC compilation error&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
