std::experimental::optional<T>::operator bool
From cppreference.com
constexpr explicit operator bool() const; |
(library fundamentals TS) | |
Checks whether *this is in engaged state, i.e. whether the contained value is initialized.
Parameters
(none)
Return value
true if *this is in engaged state, false otherwise.
Exceptions
noexcept specification:
noexcept