[#bsl-hash_map-operator_subs]
= xref:bsl.adoc[bsl]::xref:bsl/hash_map.adoc[hash&lowbar;map]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

Return a reference to the mapped value for `&lowbar;&lowbar;key`, inserting a default&hyphen;constructed value if the key is absent&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;hashmap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lowbar;Tp&
operator&lsqb;&rsqb;(xref:bsl/hash_map/key_type.adoc[key&lowbar;type] const& &lowbar;&lowbar;key);
----


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