A wrapper that can either contain an object of T or be empty. More...
#include <dumux/common/optional.hh>

A wrapper that can either contain an object of T or be empty.
| T | Type of wrapped objects |
Public Member Functions | |
| Optional () | |
| template<class TT , Dune::disableCopyMove< Optional, TT > = 0> | |
| Optional (TT &&t) | |
| Optional (Optional &&other) | |
| Optional (const Optional &other) | |
| ~Optional () | |
| template<class TT , Dune::disableCopyMove< Optional, TT > = 0> | |
| Optional & | operator= (TT &&t) |
| Optional & | operator= (const Optional &other) |
| Optional & | operator= (Optional &&other) |
| operator bool () const | |
| const T & | value () const |
| T & | value () |
| template<class... Args> | |
| void | emplace (Args &&... args) |
| void | release () |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |