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

constexpr explicit operator bool() const noexcept;
(库基础 TS)

检查 *this 是否含有值。

参数

(无)

返回值

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