Namespaces
Variants

std::experimental::optional<T>:: operator bool

From cppreference.net
constexpr explicit operator bool ( ) const noexcept ;
(库基础技术规范)

检查 * this 是否包含值。

参数

(无)

返回值

* this 包含值则为 true ,若 * this 不包含值则为 false