nlohmann::basic_json::insert_iterator

helper for insertion of an iterator

Synopsis

Declared in <nlohmann/json.hpp>

template<typename... Args>
iterator
insert_iterator(
    const_iterator pos,
    Args&&... args);

Description

NOTE

: This uses std::distance to support GCC 4.8, see https://github.com/nlohmann/json/pull/1257

Return Value

iterator pointing to the first element inserted, or pos if no element was inserted

Parameters

NameDescription
positerator before which the content will be inserted into the array
argsarguments forwarded to the underlying array's insert()