MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / is_boolean

Function is_boolean

Source/Utils/json.hpp:18913–18916  ·  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

Source from the content-addressed store, hash-verified

18911 @since version 1.0.0
18912 */
18913 constexpr bool is_boolean() const noexcept
18914 {
18915 return m_type == value_t::boolean;
18916 }
18917
18918 /*!
18919 @brief return whether value is a number

Callers 3

is_primitiveFunction · 0.85
json.hppFile · 0.85
get_impl_ptrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected