nlohmann::basic_json::emplace_back

add an object to an array

Synopsis

Declared in <nlohmann/json.hpp>

template<class... Args>
reference
emplace_back(Args&&... args);

Return Value

reference to the inserted element

Parameters

NameDescription
argsarguments forwarded to construct the new array element in place