Namespaces
Variants

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

From cppreference.net
constexpr explicit operator bool ( ) const noexcept ;
(Library Fundamentals TS)

Prüft, ob * this einen Wert enthält.

Parameter

(keine)

Rückgabewert

true falls * this einen Wert enthält, false falls * this keinen Wert enthält.