Embedded Template Library 1.0
|
#include <optional.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
optional (etl::nullopt_t) | |
Constructor with nullopt. | |
optional (const optional &other) | |
Copy constructor. | |
optional (const T &value_) | |
Construct from value type. | |
optional & | operator= (etl::nullopt_t) |
Assignment operator from nullopt. | |
optional & | operator= (const optional &other) |
Assignment operator from optional. | |
optional & | operator= (const T &value_) |
Assignment operator from value type. | |
An optional type. If the optional type is not initialised then a type is not constructed. See http://en.cppreference.com/w/cpp/utility/optional
T | The type to store. |