value::is_bool

Check if this is a bool.

Synopsis

bool
is_bool() const noexcept;

Description

Returns true if the value’s kind() is kind::bool_.

Complexity

Constant.

Exception Safety

No-throw guarantee.

Return Value

this->kind() == kind::bool_.