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

Name

Description

pos

iterator before which the content will be inserted into the array

args

arguments forwarded to the underlying array's insert()

Created with MrDocs