[#bsl-map-0c7-insert-07f] = xref:bsl.adoc[bsl]::xref:bsl/map-0c7.adoc[map<int, pair<shared_ptr<Statistics>, shared_ptr<Collector<OsLinux>>>>]::insert :relfileprefix: ../../ :mrdocs: Insert the specified `value` into this map if a key (the `first` element) equivalent to that of `value` does not already exist in this map; otherwise, if a `value_type` object whose key is equivalent to that of `value` already exists in this map, this method has no effect. Return a pair whose `first` member is an iterator referring to the (possibly newly inserted) `value_type` object in this map whose key is equivalent to that of `value`, and whose `second` member is `true` if a new value was inserted, and `false` if the key was already present. This method requires that the (template parameter) types `KEY` and `VALUE` both be `copy‐insertable` into this map (see {Requirements on `KEY` and `VALUE`}). == Synopsis Declared in `<bslstl_map.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/pair-0b.adoc[pair<iterator, bool>] insert(xref:bsl/map-0c7/value_type.adoc[value_type] const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#