[#bsl-unordered_multimap-0b0-emplace_hint]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_multimap-0b0.adoc[unordered&lowbar;multimap]::emplace&lowbar;hint
:relfileprefix: ../../
:mrdocs:

Emplace a newly constructed element near `hint`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; Args&gt;
xref:bsl/unordered_multimap-0b0/iterator.adoc[unordered&lowbar;multimap&lt;KEY, VALUE, HASH, EQUAL, ALLOCATOR&gt;::iterator]
emplace&lowbar;hint(
    xref:bsl/unordered_multimap-0b0/const_iterator.adoc[const&lowbar;iterator] hint,
    Args&&&period;&period;&period; args);
----

== Description

Insert into this unordered multimap a newly created `value&lowbar;type` object, constructed by forwarding `get&lowbar;allocator()` (if required) and the specified (variable number of) `args` to the corresponding constructor of `value&lowbar;type` (in constant time if the specified `hint` refers to an element in this container with a key equivalent to the key of the newly created `value&lowbar;type` object), and return an iterator referring to the newly created and inserted object&period; If `hint` does not refer to an element in this container with a key equivalent to the key of the newly created `value&lowbar;type` object, this operation has worst case `O&lsqb;N&rsqb;` and average case constant&hyphen;time complexity, where `N` is the size of this unordered multimap&period; This method requires that the (template parameter) types `KEY` and `VALUE` both be `emplace&hyphen;constructible` from `args` (see &lcub;Requirements on `KEY` and `VALUE`&rcub;)&period; The behavior is undefined unless `hint` is an iterator in the range &grave;&lsqb;begin() &period;&period; end()&rsqb;&grave; (both endpoints included)&period;

== Return Value

iterator referring to the newly inserted element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hint*
| iterator hint for insertion position
| *args*
| constructor arguments for the new element
|===


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