MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / is_primitive

Function is_primitive

examples/server/json.hpp:20466–20469  ·  view source on GitHub ↗

@brief return whether type is primitive @sa https://json.nlohmann.me/api/basic_json/is_primitive/

Source from the content-addressed store, hash-verified

20464 /// @brief return whether type is primitive
20465 /// @sa https://json.nlohmann.me/api/basic_json/is_primitive/
20466 constexpr bool is_primitive() const noexcept
20467 {
20468 return is_null() || is_string() || is_boolean() || is_number() || is_binary();
20469 }
20470
20471 /// @brief return whether type is structured
20472 /// @sa https://json.nlohmann.me/api/basic_json/is_structured/

Callers

nothing calls this directly

Calls 5

is_nullFunction · 0.85
is_stringFunction · 0.85
is_booleanFunction · 0.85
is_numberFunction · 0.85
is_binaryFunction · 0.85

Tested by

no test coverage detected