nlohmann::basic_json::insert

inserts range of elements into array

Synopsis

Declared in <nlohmann/json.hpp>

iterator
insert(
    const_iterator pos,
    const_iterator first,
    const_iterator last);

Return Value

iterator pointing to the first element inserted, or pos if first == last

Parameters

NameDescription
positerator before which the range will be inserted
firstiterator to the first element of the range to insert
lastiterator past the last element of the range to insert