BloombergLP::bdljsn::JsonObject::insert

Create a Member object for each iterator in the range starting at the specified first iterator and ending immediately before the specified last iterator, by converting from the object referred to by each iterator. Insert into this JsonObject each such object whose key is not already contained. Return a non-const reference to this JsonObject. The (template parameter) type t_INPUT_ITERATOR shall meet the requirements of an input iterator defined in the C++11 standard [24.2.3]providing access to values of a type convertible to Member. The behavior is undefined unless first and last refer to a sequence of value values where first is at a position at or before last. The behavior is undefined unless the keys of all Member objects inserted are valid UTF-8 (see bdlde::Utf8Util::isValid).

Synopsis

Declared in <bdljsn_json.h>

template<class t_INPUT_ITERATOR>
JsonObject&
insert(
    t_INPUT_ITERATOR first,
    t_INPUT_ITERATOR last)
requires !bsl::is_convertible<t_INPUT_ITERATOR, bsl::string_view>::value;