simdjson 4.2.3
Ridiculously Fast JSON
Loading...
Searching...
No Matches
compile_time_json.h
Go to the documentation of this file.
1
7#ifndef SIMDJSON_GENERIC_COMPILE_TIME_JSON_H
8#define SIMDJSON_GENERIC_COMPILE_TIME_JSON_H
9
10#if SIMDJSON_STATIC_REFLECTION
11
12#include <algorithm>
13#include <array>
14#include <charconv>
15#include <cstdint>
16#include <expected>
17#include <meta>
18#include <string>
19#include <string_view>
20#include <vector>
21
22namespace simdjson {
23namespace compile_time {
24
63template <constevalutil::fixed_string json_str> consteval auto parse_json();
64
65} // namespace compile_time
66} // namespace simdjson
67
68
69template <simdjson::constevalutil::fixed_string str>
70consteval auto operator ""_json() {
71 return simdjson::compile_time::parse_json<str>();
72}
73
74#endif // SIMDJSON_STATIC_REFLECTION
75#endif // SIMDJSON_GENERIC_COMPILE_TIME_JSON_H
The top level simdjson namespace, containing everything the library provides.
Definition base.h:8