[#bsl-map-0a7-operator_subs-0e4] = xref:bsl.adoc[bsl]::xref:bsl/map-0a7.adoc[map]::operator[] :relfileprefix: ../../ :mrdocs: Subscript operators == Synopses Declared in `<bslstl_map.h>` Return a modifiable reference to the mapped value for `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- add_lvalue_reference<VALUE>::type xref:bsl/map-0a7/operator_subs-0e5.adoc[operator[]](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<key_type>] key); ---- [.small]#xref:bsl/map-0a7/operator_subs-0e5.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/map-0a7/operator_subs-0d.adoc[operator[]](xref:bsl/map-0a7/key_type.adoc[key_type] const& key); ---- [.small]#xref:bsl/map-0a7/operator_subs-0d.adoc[_» more..._]# Return mapped‐value access for an equivalent lookup key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> add_lvalue_reference<VALUE>::type xref:bsl/map-0a7/operator_subs-08.adoc[operator[]](LOOKUP_KEY&& key) requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR, LOOKUP_KEY>::value; ---- [.small]#xref:bsl/map-0a7/operator_subs-08.adoc[_» more..._]# == Return Value modifiable reference to the mapped value == Parameters [cols="1,4"] |=== | Name| Description | *key* | key whose mapped value is accessed or inserted |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#