Embedded Template Library 1.0
optional.h File Reference
#include "platform.h"
#include "alignment.h"
#include "memory.h"
#include "type_traits.h"
#include "exception.h"
#include "error_handler.h"
#include "utility.h"
#include "placement_new.h"
#include "etl/private/diagnostic_uninitialized_push.h"
#include "etl/private/diagnostic_pop.h"

Go to the source code of this file.

Classes

class  etl::nullopt_t
 
class  etl::optional_exception
 
class  etl::optional_invalid
 
class  etl::optional< T, false >
 For non POD types. More...
 
union  etl::optional< T, false >::storage_type::union_type
 
class  etl::optional< T, true >
 
union  etl::optional< T, true >::storage_type::union_type
 

Namespaces

namespace  etl
 bitset_ext
 

Functions

template<typename T >
ETL_CONSTEXPR14 bool etl::operator== (const etl::optional< T > &lhs, const etl::optional< T > &rhs)
 Equality operator. cppreference 1.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator!= (const etl::optional< T > &lhs, const etl::optional< T > &rhs)
 Equality operator. cppreference 2.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator< (const etl::optional< T > &lhs, const etl::optional< T > &rhs)
 Less than operator. cppreference 3.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator<= (const etl::optional< T > &lhs, const etl::optional< T > &rhs)
 Less than equal operator. cppreference 4.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator> (const etl::optional< T > &lhs, const etl::optional< T > &rhs)
 greater than operator. cppreference 5
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator>= (const etl::optional< T > &lhs, const etl::optional< T > &rhs)
 greater than equal operator. cppreference 6
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator== (const etl::optional< T > &lhs, etl::nullopt_t)
 Equality operator. cppreference 7.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator== (etl::nullopt_t, const etl::optional< T > &rhs)
 Equality operator. cppreference 8.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator!= (const etl::optional< T > &lhs, etl::nullopt_t)
 Inequality operator. cppreference 9.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator!= (etl::nullopt_t, const etl::optional< T > &rhs)
 Inequality operator. cppreference 10.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator< (const etl::optional< T > &, etl::nullopt_t)
 Less than operator. cppreference 11.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator< (etl::nullopt_t, const etl::optional< T > &rhs)
 Less than operator. cppreference 12.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator<= (const etl::optional< T > &lhs, etl::nullopt_t)
 Less than equal operator. cppreference 13.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator<= (etl::nullopt_t, const etl::optional< T > &)
 Less than equal operator. cppreference 14.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator> (const etl::optional< T > &lhs, etl::nullopt_t)
 Greater than operator. cppreference 15.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator> (etl::nullopt_t, const etl::optional< T > &)
 Greater than operator. cppreference 16.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator>= (const etl::optional< T > &, etl::nullopt_t)
 Greater than equal operator. cppreference 17.
 
template<typename T >
ETL_CONSTEXPR14 bool etl::operator>= (etl::nullopt_t, const etl::optional< T > &rhs)
 Greater than equal operator. cppreference 18.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator== (const etl::optional< T > &lhs, const U &rhs)
 Equality operator. cppreference 19.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator!= (const etl::optional< T > &lhs, const U &rhs)
 Inequality operator. cppreference 21.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator== (const U &lhs, const etl::optional< T > &rhs)
 Equality operator. cppreference 20.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator!= (const U &lhs, const etl::optional< T > &rhs)
 Inequality operator. cppreference 22.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator< (const etl::optional< T > &lhs, const U &rhs)
 Less than operator. cppreference 23.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator< (const U &lhs, const etl::optional< T > &rhs)
 Less than operator. cppreference 24.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator<= (const etl::optional< T > &lhs, const U &rhs)
 Less than equal operator. cppreference 25.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator<= (const U &lhs, const etl::optional< T > &rhs)
 Less than equal operator. cppreference 26.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator> (const etl::optional< T > &lhs, const U &rhs)
 Greater than operator. cppreference 27.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator> (const U &lhs, const etl::optional< T > &rhs)
 Greater than operator. cppreference 28.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator>= (const etl::optional< T > &lhs, const U &rhs)
 Greater than equal operator. cppreference 29.
 
template<typename T , typename U >
ETL_CONSTEXPR14 bool etl::operator>= (const U &lhs, const etl::optional< T > &rhs)
 Greater than equal operator. cppreference 30.
 
template<typename T >
ETL_CONSTEXPR14 etl::optional< typename etl::decay< T >::type > etl::make_optional (T &value)
 Make an optional.
 
template<typename T >
ETL_CONSTEXPR14 void swap (etl::optional< T > &lhs, etl::optional< T > &rhs)
 Swaps the values.
 

Variables

const nullopt_t etl::nullopt = {}