[#bsl-map-0c7-operator_subs-0d] = xref:bsl.adoc[bsl]::xref:bsl/map-0c7.adoc[map<int, pair<shared_ptr<Statistics>, shared_ptr<Collector<OsLinux>>>>]::operator[] :relfileprefix: ../../ :mrdocs: Subscript operators == Synopses Declared in `<bslstl_map.h>` Return a reference providing modifiable access to the mapped‐value associated with the specified `key`; if this `map` does not already contain a `value_type` object having an equivalent key, first insert a new `value_type` object having the move‐inserted `key` and a default‐constructed `VALUE` object, and return a reference to the newly mapped (default) value. This method requires that the (template parameter) type `KEY` be `move‐insertable` into this map and the (template parameter) type `VALUE` be `default‐insertable` into this map (see {Requirements on `KEY` and `VALUE`}). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/add_lvalue_reference-01/type.adoc[add_lvalue_reference<pair<shared_ptr<Statistics>, shared_ptr<Collector<OsLinux>>>>::type] xref:bsl/map-0c7/operator_subs-05.adoc[operator[]](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<key_type>] key); ---- [.small]#xref:bsl/map-0c7/operator_subs-05.adoc[_» more..._]# Return a reference providing modifiable access to the mapped‐value associated with the specified `key`; if this `map` does not already contain a `value_type` object having an equivalent key, first insert a new `value_type` object having `key` and a default‐constructed `VALUE` object, and return a reference to the newly mapped (default) value. This method requires that the (template parameter) type `KEY` be `copy‐insertable` into this map and the (template parameter) type `VALUE` be `default‐insertable` into this map (see {Requirements on `KEY` and `VALUE`}). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/add_lvalue_reference-01/type.adoc[add_lvalue_reference<pair<shared_ptr<Statistics>, shared_ptr<Collector<OsLinux>>>>::type] xref:bsl/map-0c7/operator_subs-0b.adoc[operator[]](xref:bsl/map-0c7/key_type.adoc[key_type] const& key); ---- [.small]#xref:bsl/map-0c7/operator_subs-0b.adoc[_» more..._]# Return a reference providing modifiable access to the mapped‐value associated with a key that is equivalent with the specified `key`; if this `map` does not already contain a `value_type` object having an equivalent key, first insert a new `value_type` object having the move‐inserted `key` and a default‐constructed `VALUE` object, and return a reference to the newly mapped (default) value. This method requires that the (template parameter) type `KEY` be `move‐insertable` into this map and the (template parameter) type `VALUE` be `default‐insertable` into this map (see {Requirements on `KEY` and `VALUE`}). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> xref:bsl/add_lvalue_reference-01/type.adoc[add_lvalue_reference<pair<shared_ptr<Statistics>, shared_ptr<Collector<OsLinux>>>>::type] xref:bsl/map-0c7/operator_subs-08.adoc[operator[]](LOOKUP_KEY&& key) requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR, LOOKUP_KEY>::value; ---- [.small]#xref:bsl/map-0c7/operator_subs-08.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#