2022-07-20 12:38:07 +02:00
|
|
|
// __ _____ _____ _____
|
|
|
|
// __| | __| | | | JSON for Modern C++
|
2023-11-28 22:36:31 +01:00
|
|
|
// | | |__ | | | | | | version 3.11.3
|
2022-07-20 12:38:07 +02:00
|
|
|
// |_____|_____|_____|_|___| https://github.com/nlohmann/json
|
|
|
|
//
|
2023-11-26 15:51:19 +01:00
|
|
|
// SPDX-FileCopyrightText: 2013-2023 Niels Lohmann <https://nlohmann.me>
|
2022-07-20 12:38:07 +02:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2018-01-10 10:18:31 +01:00
|
|
|
#pragma once
|
2017-08-14 17:18:07 +02:00
|
|
|
|
2022-07-30 21:59:13 +02:00
|
|
|
#include <nlohmann/detail/abi_macros.hpp>
|
2018-01-29 11:21:11 +01:00
|
|
|
#include <nlohmann/detail/iterators/primitive_iterator.hpp>
|
2017-08-14 17:18:07 +02:00
|
|
|
|
2022-07-30 21:59:13 +02:00
|
|
|
NLOHMANN_JSON_NAMESPACE_BEGIN
|
2017-08-14 17:18:07 +02:00
|
|
|
namespace detail
|
|
|
|
{
|
2022-07-30 21:59:13 +02:00
|
|
|
|
2017-08-14 17:18:07 +02:00
|
|
|
/*!
|
|
|
|
@brief an iterator value
|
|
|
|
|
|
|
|
@note This structure could easily be a union, but MSVC currently does not allow
|
|
|
|
unions members with complex constructors, see https://github.com/nlohmann/json/pull/105.
|
|
|
|
*/
|
|
|
|
template<typename BasicJsonType> struct internal_iterator
|
|
|
|
{
|
|
|
|
/// iterator for JSON objects
|
|
|
|
typename BasicJsonType::object_t::iterator object_iterator {};
|
|
|
|
/// iterator for JSON arrays
|
|
|
|
typename BasicJsonType::array_t::iterator array_iterator {};
|
|
|
|
/// generic iterator for all other types
|
|
|
|
primitive_iterator_t primitive_iterator {};
|
|
|
|
};
|
2022-07-30 21:59:13 +02:00
|
|
|
|
2018-10-07 18:39:18 +02:00
|
|
|
} // namespace detail
|
2022-07-30 21:59:13 +02:00
|
|
|
NLOHMANN_JSON_NAMESPACE_END
|