[#bsl-set-0d-emplace_hint]
= xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::emplace&lowbar;hint
:relfileprefix: ../../
:mrdocs:

Insert into this set a newly created `value&lowbar;type` object, constructed by forwarding `get&lowbar;allocator()` (if required) and the specified (variable number of) `arguments` to the corresponding constructor of `value&lowbar;type`, (in amortized constant time if the specified `hint` is a valid immediate successor to the `value&lowbar;type` object constructed from `arguments`), if a key equivalent to such a value does not already exist in this set&semi; otherwise, this method has no effect (other than possibly creating a temporary `value&lowbar;type` object)&period; Return an iterator referring to the (possibly newly created and inserted) object in this set whose value is equivalent to that of an object constructed from `arguments`&period; If `hint` is not a valid immediate successor to the `value&lowbar;type` object implied by `arguments`, this operation has `O&lsqb;log(N)&rsqb;` complexity where `N` is the size of this set&period; This method requires that the (template parameter) type `KEY` be `emplace&hyphen;constructible` from `arguments` (see &lcub;Requirements on `KEY`&rcub;)&period; The behavior is undefined unless `hint` is an iterator in the range `&lsqb;begin() &period;&period; end()&rsqb;` (both endpoints included)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; Args&gt;
xref:bsl/set-0d/iterator.adoc[set&lt;KEY, COMPARATOR, ALLOCATOR&gt;::iterator]
emplace&lowbar;hint(
    xref:bsl/set-0d/const_iterator.adoc[const&lowbar;iterator] hint,
    Args&&&period;&period;&period; arguments);
----


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