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

Function is_boolean

3rd/nlohmann_json/include/nlohmann/json.hpp:2573–2576  ·  view source on GitHub ↗

! @brief return whether value is a boolean This function returns true if and only if the JSON value is a boolean. @return `true` if type is boolean, `false` otherwise. @complexity Constant. @exceptionsafety No-throw guarantee: this member function never throws exceptions. @liveexample{The following code exemplifies `is_boolean()` for all JSON types.,is_boolean}

Source from the content-addressed store, hash-verified

2571 @since version 1.0.0
2572 */
2573 constexpr bool is_boolean() const noexcept
2574 {
2575 return m_type == value_t::boolean;
2576 }
2577
2578 /*!
2579 @brief return whether value is a number

Callers 3

is_primitiveFunction · 0.70
json.hppFile · 0.70
get_impl_ptrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected