[#bsl-hash_map-operator_subs] = xref:bsl.adoc[bsl]::xref:bsl/hash_map.adoc[hash_map]::operator[] :relfileprefix: ../../ :mrdocs: Return a reference to the mapped value for `__key`, inserting a default‐constructed value if the key is absent. == Synopsis Declared in `<bslstp_hashmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- _Tp& operator[](xref:bsl/hash_map/key_type.adoc[key_type] const& __key); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#