Embedded Template Library 1.0
Loading...
Searching...
No Matches
expected.h File Reference
#include "platform.h"
#include "exception.h"
#include "error_handler.h"
#include "utility.h"
#include "variant.h"
#include "initializer_list.h"

Go to the source code of this file.

Classes

class  etl::expected_exception
 Base exception for et::expected. More...
 
class  etl::expected_invalid
 expected_invalid More...
 
class  etl::unexpected< TError >
 
struct  etl::unexpect_t
 unexpect_t More...
 
class  etl::expected< TValue, TError >
 Expected type. More...
 
class  etl::expected< void, TError >
 Specialisation for void value type. More...
 

Namespaces

namespace  etl
 bitset_ext
 

Functions

template<typename TValue , typename TError , typename TValue2 , typename TError2 >
ETL_CONSTEXPR14 bool operator== (const etl::expected< TValue, TError > &lhs, const etl::expected< TValue2, TError2 > &rhs)
 Equivalence operators.
 
template<typename TValue , typename TError , typename TValue2 >
ETL_CONSTEXPR14 bool operator== (const etl::expected< TValue, TError > &lhs, const TValue2 &rhs)
 
template<typename TValue , typename TError , typename TError2 >
ETL_CONSTEXPR14 bool operator== (const etl::expected< TValue, TError > &lhs, const etl::unexpected< TError2 > &rhs)
 
template<typename TError , typename TError2 >
ETL_CONSTEXPR14 bool operator== (const etl::expected< void, TError > &lhs, const etl::expected< void, TError2 > &rhs)
 
template<typename TError , typename TError2 >
ETL_CONSTEXPR14 bool operator== (const etl::expected< void, TError > &lhs, const etl::unexpected< TError2 > &rhs)
 
template<typename TError , typename TError2 >
ETL_CONSTEXPR14 bool operator== (const etl::unexpected< TError > &lhs, const etl::unexpected< TError2 > &rhs)
 
template<typename TValue , typename TError , typename TValue2 , typename TError2 >
ETL_CONSTEXPR14 bool operator!= (const etl::expected< TValue, TError > &lhs, const etl::expected< TValue2, TError2 > &rhs)
 
template<typename TValue , typename TError , typename TValue2 >
ETL_CONSTEXPR14 bool operator!= (const etl::expected< TValue, TError > &lhs, const TValue2 &rhs)
 
template<typename TValue , typename TError , typename TError2 >
ETL_CONSTEXPR14 bool operator!= (const etl::expected< TValue, TError > &lhs, const etl::unexpected< TError2 > &rhs)
 
template<typename TError , typename TError2 >
ETL_CONSTEXPR14 bool operator!= (const etl::expected< void, TError > &lhs, const etl::expected< void, TError2 > &rhs)
 
template<typename TError , typename TError2 >
ETL_CONSTEXPR14 bool operator!= (const etl::expected< void, TError > &lhs, const etl::unexpected< TError2 > &rhs)
 
template<typename TError , typename TError2 >
ETL_CONSTEXPR14 bool operator!= (const etl::unexpected< TError > &lhs, const etl::unexpected< TError2 > &rhs)
 
template<typename TValue , typename TError >
ETL_CONSTEXPR14 void swap (etl::expected< TValue, TError > &lhs, etl::expected< TValue, TError > &rhs)
 Swap etl::expected.
 
template<typename TError >
ETL_CONSTEXPR14 void swap (etl::unexpected< TError > &lhs, etl::unexpected< TError > &rhs)
 Swap etl::unexpected.