[#bsl-map-0c7-insert_or_assign-0b]
= xref:bsl.adoc[bsl]::xref:bsl/map-0c7.adoc[map&lt;int, pair&lt;shared&lowbar;ptr&lt;Statistics&gt;, shared&lowbar;ptr&lt;Collector&lt;OsLinux&gt;&gt;&gt;&gt;]::insert&lowbar;or&lowbar;assign
:relfileprefix: ../../
:mrdocs:

If a key equivalent to the specified movable `key` already exists in this map, assign the specified `obj` to the mapped value&semi; otherwise insert a new entry constructed from `key` and `obj`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;map&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class BDE&lowbar;OTHER&lowbar;TYPE&gt;
xref:bsl/pair-0b.adoc[pair&lt;iterator, bool&gt;]
insert&lowbar;or&lowbar;assign(
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;int&gt;] key,
    BDE&lowbar;OTHER&lowbar;TYPE&& obj);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
