! @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
| 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 |
no test coverage detected