std::any::has_value (3) - Linux Man Pages

std::any::has_value: std::any::has_value

NAME

std::any::has_value - std::any::has_value

Synopsis


bool has_value() const noexcept; (since C++17)


Checks whether the object contains a value.

Parameters


(none)

Return value


true if instance contains a value, otherwise false.