| 1 | #ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_ |
| 2 | #define INCLUDE_NLOHMANN_JSON_FWD_HPP_ |
| 3 | |
| 4 | #include <cstdint> // int64_t, uint64_t |
| 5 | #include <map> // map |
| 6 | #include <memory> // allocator |
| 7 | #include <string> // string |
| 8 | #include <vector> // vector |
| 9 | |
| 10 | /*! |
| 11 | @brief namespace for Niels Lohmann |
| 12 | @see https://github.com/nlohmann |
| 13 | @since version 1.0.0 |
| 14 | */ |
| 15 | namespace nlohmann |
| 16 | { |
| 17 | /*! |
| 18 | @brief default JSONSerializer template argument |
| 19 | |
| 20 | This serializer ignores the template arguments and uses ADL |
| 21 | ([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl)) |
| 22 | for serialization. |
| 23 | */ |
| 24 | template<typename T = void, typename SFINAE = void> |
| 25 | struct adl_serializer; |
| 26 | |
| 27 | template<template<typename U, typename V, typename... Args> class ObjectType = |
| 28 | std::map, |
| 29 | template<typename U, typename... Args> class ArrayType = std::vector, |
| 30 | class StringType = std::string, class BooleanType = bool, |
| 31 | class NumberIntegerType = std::int64_t, |
| 32 | class NumberUnsignedType = std::uint64_t, |
| 33 | class NumberFloatType = double, |
| 34 | template<typename U> class AllocatorType = std::allocator, |
| 35 | template<typename T, typename SFINAE = void> class JSONSerializer = |
| 36 | adl_serializer> |
| 37 | class basic_json; |
| 38 | |
| 39 | /*! |
| 40 | @brief JSON Pointer |
| 41 | |
| 42 | A JSON pointer defines a string syntax for identifying a specific value |
| 43 | within a JSON document. It can be used with functions `at` and |
| 44 | `operator[]`. Furthermore, JSON pointers are the base for JSON patches. |
| 45 | |
| 46 | @sa [RFC 6901](https://tools.ietf.org/html/rfc6901) |
| 47 | |
| 48 | @since version 2.0.0 |
| 49 | */ |
| 50 | template<typename BasicJsonType> |
| 51 | class json_pointer; |
| 52 | |
| 53 | /*! |
| 54 | @brief default JSON class |
| 55 | |
| 56 | This type is the default specialization of the @ref basic_json class which |
| 57 | uses the standard template types. |
| 58 | |
| 59 | @since version 1.0.0 |
| 60 | */ |
| 61 | using json = basic_json<>; |
| 62 | } // namespace nlohmann |
| 63 | |
| 64 | #endif // INCLUDE_NLOHMANN_JSON_FWD_HPP_ |
| 65 | |