construct a JSON container given an iterator range

Synopsis

Declared in <nlohmann/json.hpp>

template<class InputIT>
requires std::is_same<InputIT, typename basic_json_t::iterator>::value ||
                   std::is_same<InputIT, typename basic_json_t::const_iterator>::value
basic_json(
    InputIT first,
    InputIT last);

Parameters

Name

Description

first

The object to construct from

Created with MrDocs