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

Function is_number

native/thirdpart/json/json.hpp:16743–16746  ·  view source on GitHub ↗

! @brief return whether value is a number This function returns true if and only if the JSON value is a number. This includes both integer (signed and unsigned) and floating-point values. @return `true` if type is number (regardless whether integer, unsigned integer or floating-type), `false` otherwise. @complexity Constant. @exceptionsafety No-throw guarantee: this

Source from the content-addressed store, hash-verified

16741 @since version 1.0.0
16742 */
16743 constexpr bool is_number() const noexcept
16744 {
16745 return is_number_integer() or is_number_float();
16746 }
16747
16748 /*!
16749 @brief return whether value is an integer number

Callers 1

is_primitiveFunction · 0.85

Calls 2

is_number_integerFunction · 0.85
is_number_floatFunction · 0.85

Tested by

no test coverage detected