28 decltype(std::declval<T&>().boolean(std::declval<bool>()));
30template<
typename T,
typename Integer>
32 decltype(std::declval<T&>().number_integer(std::declval<Integer>()));
34template<
typename T,
typename Un
signed>
36 decltype(std::declval<T&>().number_unsigned(std::declval<Unsigned>()));
38template<
typename T,
typename Float,
typename String>
40 std::declval<Float>(), std::declval<const String&>()));
42template<
typename T,
typename String>
44 decltype(std::declval<T&>().string(std::declval<String&>()));
46template<
typename T,
typename Binary>
48 decltype(std::declval<T&>().binary(std::declval<Binary&>()));
52 decltype(std::declval<T&>().start_object(std::declval<std::size_t>()));
54template<
typename T,
typename String>
56 decltype(std::declval<T&>().key(std::declval<String&>()));
63 decltype(std::declval<T&>().start_array(std::declval<std::size_t>()));
68template<
typename T,
typename Exception>
70 std::declval<std::size_t>(), std::declval<const std::string&>(),
71 std::declval<const Exception&>()));
73template<
typename SAX,
typename BasicJsonType>
78 "BasicJsonType must be of type basic_json<...>");
80 using number_integer_t =
typename BasicJsonType::number_integer_t;
81 using number_unsigned_t =
typename BasicJsonType::number_unsigned_t;
82 using number_float_t =
typename BasicJsonType::number_float_t;
83 using string_t =
typename BasicJsonType::string_t;
84 using binary_t =
typename BasicJsonType::binary_t;
85 using exception_t =
typename BasicJsonType::exception;
104template<
typename SAX,
typename BasicJsonType>
109 "BasicJsonType must be of type basic_json<...>");
111 using number_integer_t =
typename BasicJsonType::number_integer_t;
112 using number_unsigned_t =
typename BasicJsonType::number_unsigned_t;
113 using number_float_t =
typename BasicJsonType::number_float_t;
114 using string_t =
typename BasicJsonType::string_t;
115 using binary_t =
typename BasicJsonType::binary_t;
116 using exception_t =
typename BasicJsonType::exception;
120 "Missing/invalid function: bool null()");
122 "Missing/invalid function: bool boolean(bool)");
124 "Missing/invalid function: bool boolean(bool)");
128 "Missing/invalid function: bool number_integer(number_integer_t)");
132 "Missing/invalid function: bool number_unsigned(number_unsigned_t)");
134 number_float_t, string_t>
::value,
135 "Missing/invalid function: bool number_float(number_float_t, const string_t&)");
138 "Missing/invalid function: bool string(string_t&)");
141 "Missing/invalid function: bool binary(binary_t&)");
143 "Missing/invalid function: bool start_object(std::size_t)");
145 "Missing/invalid function: bool key(string_t&)");
147 "Missing/invalid function: bool end_object()");
149 "Missing/invalid function: bool start_array(std::size_t)");
151 "Missing/invalid function: bool end_array()");
154 "Missing/invalid function: bool parse_error(std::size_t, const "
155 "std::string&, const exception&)");
#define WPI_JSON_NAMESPACE_END
Definition abi_macros.h:59
#define WPI_JSON_NAMESPACE_BEGIN
Definition abi_macros.h:53
detail namespace with internal helper functions
Definition input_adapters.h:32
decltype(std::declval< T & >().binary(std::declval< Binary & >())) binary_function_t
Definition is_sax.h:47
decltype(std::declval< T & >().end_object()) end_object_function_t
Definition is_sax.h:59
decltype(std::declval< T & >().boolean(std::declval< bool >())) boolean_function_t
Definition is_sax.h:27
std::is_same< Expected, detected_t< Op, Args... > > is_detected_exact
Definition detected.h:63
@ value
the parser finished reading a JSON value
decltype(std::declval< T & >().key(std::declval< String & >())) key_function_t
Definition is_sax.h:55
decltype(std::declval< T & >().null()) null_function_t
Definition is_sax.h:24
decltype(std::declval< T & >().start_object(std::declval< std::size_t >())) start_object_function_t
Definition is_sax.h:51
decltype(std::declval< T & >().number_float( std::declval< Float >(), std::declval< const String & >())) number_float_function_t
Definition is_sax.h:39
decltype(std::declval< T & >().start_array(std::declval< std::size_t >())) start_array_function_t
Definition is_sax.h:62
decltype(std::declval< T & >().number_integer(std::declval< Integer >())) number_integer_function_t
Definition is_sax.h:31
decltype(std::declval< T & >().parse_error( std::declval< std::size_t >(), std::declval< const std::string & >(), std::declval< const Exception & >())) parse_error_function_t
Definition is_sax.h:69
decltype(std::declval< T & >().end_array()) end_array_function_t
Definition is_sax.h:66
decltype(std::declval< T & >().string(std::declval< String & >())) string_function_t
Definition is_sax.h:43
decltype(std::declval< T & >().number_unsigned(std::declval< Unsigned >())) number_unsigned_function_t
Definition is_sax.h:35
Definition type_traits.h:50