Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/test/simulation/fixtures/cpp/headers/json_fwd.hpp
13405 views
1
// __ _____ _____ _____
2
// __| | __| | | | JSON for Modern C++
3
// | | |__ | | | | | | version 3.11.3
4
// |_____|_____|_____|_|___| https://github.com/nlohmann/json
5
//
6
// SPDX-FileCopyrightText: 2013-2023 Niels Lohmann <https://nlohmann.me>
7
// SPDX-License-Identifier: MIT
8
9
#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
10
#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
11
12
#include <cstdint> // int64_t, uint64_t
13
#include <map> // map
14
#include <memory> // allocator
15
#include <string> // string
16
#include <vector> // vector
17
18
#include "abi_macros.hpp"
19
20
/*!
21
@brief namespace for Niels Lohmann
22
@see https://github.com/nlohmann
23
@since version 1.0.0
24
*/
25
namespace nlohmann { inline namespace json_abi_v3_11_3 {
26
27
/*!
28
@brief default JSONSerializer template argument
29
30
This serializer ignores the template arguments and uses ADL
31
([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
32
for serialization.
33
*/
34
template<typename T = void, typename SFINAE = void>
35
struct adl_serializer;
36
37
template<template<typename U, typename V, typename... Args> class ObjectType =
38
std::map,
39
template<typename U, typename... Args> class ArrayType = std::vector,
40
class StringType = std::string, class BooleanType = bool,
41
class NumberIntegerType = std::int64_t,
42
class NumberUnsignedType = std::uint64_t,
43
class NumberFloatType = double,
44
template<typename U> class AllocatorType = std::allocator,
45
template<typename T, typename SFINAE = void> class JSONSerializer =
46
adl_serializer,
47
class BinaryType = std::vector<std::uint8_t>, // cppcheck-suppress syntaxError
48
class CustomBaseClass = void>
49
class basic_json;
50
51
/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
52
/// @sa https://json.nlohmann.me/api/json_pointer/
53
template<typename RefStringType>
54
class json_pointer;
55
56
/*!
57
@brief default specialization
58
@sa https://json.nlohmann.me/api/json/
59
*/
60
using json = basic_json<>;
61
62
/// @brief a minimal map-like container that preserves insertion order
63
/// @sa https://json.nlohmann.me/api/ordered_map/
64
template<class Key, class T, class IgnoredLess, class Allocator>
65
struct ordered_map;
66
67
/// @brief specialization that maintains the insertion order of object keys
68
/// @sa https://json.nlohmann.me/api/ordered_json/
69
using ordered_json = basic_json<nlohmann::ordered_map>;
70
71
NLOHMANN_JSON_NAMESPACE_END
72
73
#endif // INCLUDE_NLOHMANN_JSON_FWD_HPP_
74
75