MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / from_json

Function from_json

lesson6-Segmentation/json.hpp:3426–3433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3424{
3425template<typename BasicJsonType>
3426void 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
3436template < 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 10

createFunction · 0.85
get_arithmetic_valueFunction · 0.85
beginFunction · 0.85
from_json_array_implFunction · 0.85
from_json_tuple_implFunction · 0.85
clearMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
emplaceMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected