[#bsl-map-0c7-try_emplace-05]
= 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;]::try&lowbar;emplace
:relfileprefix: ../../
:mrdocs:

Insert at the specified `hint` using the transparent `LOOKUP&lowbar;KEY` and the specified constructor `args`, or return an iterator to an existing entry&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class LOOKUP&lowbar;KEY,
    class&period;&period;&period; Args&gt;
xref:bsl/map-0c7/iterator.adoc[iterator]
try&lowbar;emplace(
    xref:bsl/map-0c7/const_iterator.adoc[const&lowbar;iterator] hint,
    LOOKUP&lowbar;KEY&& key,
    Args&&&period;&period;&period; args)
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;COMPARATOR,
                                                   LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----


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