add an object to an object if key does not exist
Declared in <nlohmann/json.hpp>
template<class... Args>
std::pair<iterator, bool>
emplace(Args&&... args);
pair of an iterator to the element that was inserted, or that already existed with the same key, and a bool denoting whether the insertion took place
| Name | Description |
|---|---|
| args | arguments forwarded to construct the new key-value pair in place |