MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / is_primitive

Function is_primitive

native/thirdpart/json/json.hpp:16642–16645  ·  view source on GitHub ↗

! @brief return whether type is primitive This function returns true if and only if the JSON type is primitive (string, number, boolean, or null). @return `true` if type is primitive (string, number, boolean, or null), `false` otherwise. @complexity Constant. @exceptionsafety No-throw guarantee: this member function never throws exceptions. @liveexample{The

Source from the content-addressed store, hash-verified

16640 @since version 1.0.0
16641 */
16642 constexpr bool is_primitive() const noexcept
16643 {
16644 return is_null() or is_string() or is_boolean() or is_number();
16645 }
16646
16647 /*!
16648 @brief return whether type is structured

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected