Embedded Template Library 1.0
Loading...
Searching...
No Matches
etl::optional< T > Class Template Reference

#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.
 
optionaloperator= (etl::nullopt_t)
 Assignment operator from nullopt.
 
optionaloperator= (const optional &other)
 Assignment operator from optional.
 
optionaloperator= (const T &value_)
 Assignment operator from value type.
 

Detailed Description

template<typename T>
class etl::optional< T >

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

Template Parameters
TThe type to store.

The documentation for this class was generated from the following file: