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)

 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Concepts (concepts TS)
Extensions for concurrency (concurrency TS)
Special mathematical functions (special math TR)
 
 
 
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