nlohmann::basic_json::insert

inserts elements from initializer list into array

Synopsis

Declared in <nlohmann/json.hpp>

iterator
insert(
    const_iterator pos,
    initializer_list_t ilist);

Return Value

iterator pointing to the first element inserted, or pos if ilist is empty

Parameters

NameDescription
positerator before which the elements will be inserted
ilistinitializer list of elements to insert