value::is_string

Check if this is a string.

Synopsis

bool
is_string() const noexcept;

Description

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

Complexity

Constant.

Exception Safety

No-throw guarantee.

Return Value

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