MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / from_json

Function from_json

Source/Utils/json.hpp:3426–3433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3424 {
3425 template<typename BasicJsonType>
3426 void from_json(const BasicJsonType& j, typename std::nullptr_t& n)
3427 {
3428 if (JSON_HEDLEY_UNLIKELY(!j.is_null()))
3429 {
3430 JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name())));
3431 }
3432 n = nullptr;
3433 }
3434
3435 // overloads for basic_json template parameters
3436 template < typename BasicJsonType, typename ArithmeticType,

Callers 5

json.hppFile · 0.85
operator()Method · 0.85
from_jsonMethod · 0.85
getFunction · 0.85
get_toFunction · 0.85

Calls 13

createFunction · 0.85
get_arithmetic_valueFunction · 0.85
from_json_array_implFunction · 0.85
from_json_tuple_implFunction · 0.85
type_nameMethod · 0.80
is_booleanMethod · 0.80
resizeMethod · 0.80
emplaceMethod · 0.80
beginFunction · 0.70
clearMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected