simdjson  3.1.6
Ridiculously Fast JSON
jsonioutil.h
1 #ifndef SIMDJSON_JSONIOUTIL_H
2 #define SIMDJSON_JSONIOUTIL_H
3 
4 #include "simdjson/common_defs.h"
5 #include "simdjson/padded_string.h"
6 
7 namespace simdjson {
8 
9 #if SIMDJSON_EXCEPTIONS
10 #ifndef SIMDJSON_DISABLE_DEPRECATED_API
11 [[deprecated("Use padded_string::load() instead")]]
12 inline padded_string get_corpus(const char *path) {
13  return padded_string::load(path);
14 }
15 #endif // SIMDJSON_DISABLE_DEPRECATED_API
16 #endif // SIMDJSON_EXCEPTIONS
17 
18 } // namespace simdjson
19 
20 #endif // SIMDJSON_JSONIOUTIL_H
We want to support argument-dependent lookup (ADL).
static simdjson_result< padded_string > load(std::string_view path) noexcept
Load this padded string from a file.