[#bsl-map-0af-try_emplace-00]
= xref:bsl.adoc[bsl]::xref:bsl/map-0af.adoc[map&lt;TimeInterval, Node*&gt;]::try&lowbar;emplace
:relfileprefix: ../../
:mrdocs:

If a key equivalent to the specified `key` already exists in this map, return an iterator referring to the existing item&period; Otherwise, insert into this map a newly&hyphen;created `value&lowbar;type` object, constructed from from `key` and the specified `args`, and return an iterator referring to the newly&hyphen;created entry&period; Use the specified `hint` as a starting point for checking to see if the key already in the map&period; This method requires that the (template parameter) types `KEY` and `VALUE` are `emplace&hyphen;constructible` from `key` and `args` respectively&period; For C&plus;&plus;03, `VALUE` must also be `copy&hyphen;constructible`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; Args&gt;
xref:bsl/map-0af/iterator.adoc[iterator]
try&lowbar;emplace(
    xref:bsl/map-0af/const_iterator.adoc[const&lowbar;iterator] hint,
    xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval] const& key,
    Args&&&period;&period;&period; args);
----


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