MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / is_primitive

Function is_primitive

dependencies/json/json.hpp:18926–18929  ·  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

18924 @since version 1.0.0
18925 */
18926 constexpr bool is_primitive() const noexcept
18927 {
18928 return is_null() || is_string() || is_boolean() || is_number() || is_binary();
18929 }
18930
18931 /*!
18932 @brief return whether type is structured

Callers

nothing calls this directly

Calls 5

is_nullFunction · 0.70
is_stringFunction · 0.70
is_booleanFunction · 0.70
is_numberFunction · 0.70
is_binaryFunction · 0.70

Tested by

no test coverage detected