MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / is_number

Function is_number

3rd/nlohmann_json/single_include/nlohmann/json.hpp:20104–20107  ·  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

20102 @since version 1.0.0
20103 */
20104 constexpr bool is_number() const noexcept
20105 {
20106 return is_number_integer() || is_number_float();
20107 }
20108
20109 /*!
20110 @brief return whether value is an integer number

Callers 1

is_primitiveFunction · 0.70

Calls 2

is_number_integerFunction · 0.70
is_number_floatFunction · 0.70

Tested by

no test coverage detected