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

Function basic_json

Source/Utils/json.hpp:17829–17833  ·  view source on GitHub ↗

! @brief create an empty value with a given type Create an empty JSON value with a given type. The value will be default initialized with an empty value which depends on the type: Value type | initial value ----------- | ------------- null | `null` boolean | `false` string | `""` number | `0` ob

Source from the content-addressed store, hash-verified

17827 @since version 1.0.0
17828 */
17829 basic_json(const value_t v)
17830 : m_type(v), m_value(v)
17831 {
17832 assert_invariant();
17833 }
17834
17835 /*!
17836 @brief create a null object

Callers 15

basic_json binaryFunction · 0.70
basic_json arrayFunction · 0.70
basic_json objectFunction · 0.70
operator[]Function · 0.70
push_backFunction · 0.70
operator==Function · 0.70
operator!=Function · 0.70
operator<Function · 0.70
operator<=Function · 0.70
operator>Function · 0.70
operator>=Function · 0.70
basic_json from_cborFunction · 0.70

Calls 12

assert_invariantFunction · 0.85
to_jsonFunction · 0.85
createFunction · 0.85
typeMethod · 0.80
moved_or_copiedMethod · 0.80
emplaceMethod · 0.80
is_beginMethod · 0.80
is_endMethod · 0.80
type_nameMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected