[#bsl-unordered_map-02b-operator_subs-01] = xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered_map]::operator[] :relfileprefix: ../../ :mrdocs: Subscript operators == Synopses Declared in `<bslstl_unorderedmap.h>` Return a modifiable reference to the mapped value for movable `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- add_lvalue_reference<VALUE>::type xref:bsl/unordered_map-02b/operator_subs-0d4.adoc[operator[]](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<key_type>] key); ---- [.small]#xref:bsl/unordered_map-02b/operator_subs-0d4.adoc[_» more..._]# Return a modifiable reference to the mapped value for `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- add_lvalue_reference<VALUE>::type xref:bsl/unordered_map-02b/operator_subs-0de.adoc[operator[]](xref:bsl/unordered_map-02b/key_type.adoc[key_type] const& key); ---- [.small]#xref:bsl/unordered_map-02b/operator_subs-0de.adoc[_» more..._]# Return a modifiable reference to the mapped value for an equivalent `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> add_lvalue_reference<VALUE>::type xref:bsl/unordered_map-02b/operator_subs-0a.adoc[operator[]](LOOKUP_KEY&& key) requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value; ---- [.small]#xref:bsl/unordered_map-02b/operator_subs-0a.adoc[_» more..._]# == Return Value modifiable reference to the mapped value == Parameters [cols="1,4"] |=== | Name| Description | *key* | key to look up |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#