TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ set_parents() [2/2]

template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer, class BinaryType = std::vector<std::uint8_t>>
iterator nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::set_parents ( iterator  it,
typename iterator::difference_type  count 
)
inlineprivate

Definition at line 18996 of file json.hpp.

18997 {
18998#if JSON_DIAGNOSTICS
18999
19000 for (typename iterator::difference_type i = 0; i < count; ++i)
19001 {
19002 (it + i)->m_parent = this;
19003 }
19004
19005#else
19006 static_cast<void>(count);
19007#endif
19008 return it;
19009 }
size_type count(KeyT &&key) const
returns the number of occurrences of a key in a JSON object
Definition: json.hpp:22274
typename BasicJsonType::difference_type difference_type
a type to represent differences between iterators
Definition: json.hpp:11740