Namespaces
Variants
Views
Actions

std::experimental::optional::operator bool

From cppreference.com
< cpp‎ | experimental‎ | optional
Revision as of 17:39, 16 March 2014 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
constexpr explicit operator bool() const;
(library fundamentals TS)

Checks whether *this is in engaged state, i.e. whether the contained value is initialized.

[edit] Parameters

(none)

[edit] Return value

true if *this is in engaged state, false otherwise.

[edit] Exceptions

noexcept specification:  
noexcept