std::optional::operator bool

From cppreference.com
< cpp‎ | utility‎ | optional
constexpr explicit operator bool() const;
(since C++17)

Checks whether *this contains a value.

[edit] Parameters

(none)

[edit] Return value

true if *this contains a value, false if *this does not contain a value.

[edit] Exceptions

noexcept specification:  
noexcept