Namespaces
Variants
Views
Actions

cpp/experimental/optional/operator bool

From cppreference.com
< cpp‎ | experimental‎ | optional
Revision as of 16:54, 1 July 2013 by P12bot (Talk | contribs)

Template:cpp/utility/optional/title Template:cpp/utility/optional/navbar

constexpr explicit operator bool() const;
(since C++14)

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