[#nlohmann-basic_json-0e-emplace]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0e.adoc[basic&lowbar;json&lt;&gt;]::emplace
:relfileprefix: ../../
:mrdocs:

add an object to an object if key does not exist

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; Args&gt;
std::pair&lt;iterator, bool&gt;
emplace(Args&period;&period;&period;&&&period;&period;&period; args);
----


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