Loading...
Searching...
No Matches
expected.h File Reference
`#include "platform.h"`
`#include "error_handler.h"`
`#include "exception.h"`
`#include "initializer_list.h"`
`#include "invoke.h"`
`#include "memory.h"`
`#include "type_traits.h"`
`#include "utility.h"`
`#include "variant.h"`

Go to the source code of this file.

## Classes

struct | etl::is_expected< T >
struct | etl::is_expected< expected< TValue, TError > >
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

## Functions

template<typename TValue, typename TError, typename TValue2, typename TError2>
ETL_CONSTEXPR14 bool | etl::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 | etl::operator== (const etl::expected< TValue, TError > &lhs, const TValue2 &rhs)
template<typename TValue, typename TError, typename TError2>
ETL_CONSTEXPR14 bool | etl::operator== (const etl::expected< TValue, TError > &lhs, const etl::unexpected< TError2 > &rhs)
template<typename TError, typename TError2>
ETL_CONSTEXPR14 bool | etl::operator== (const etl::expected< void, TError > &lhs, const etl::expected< void, TError2 > &rhs)
template<typename TError, typename TError2>
ETL_CONSTEXPR14 bool | etl::operator== (const etl::expected< void, TError > &lhs, const etl::unexpected< TError2 > &rhs)
template<typename TError, typename TError2>
ETL_CONSTEXPR14 bool | etl::operator== (const etl::unexpected< TError > &lhs, const etl::unexpected< TError2 > &rhs)
template<typename TValue, typename TError, typename TValue2, typename TError2>
ETL_CONSTEXPR14 bool | etl::operator!= (const etl::expected< TValue, TError > &lhs, const etl::expected< TValue2, TError2 > &rhs)
template<typename TValue, typename TError, typename TValue2>
ETL_CONSTEXPR14 bool | etl::operator!= (const etl::expected< TValue, TError > &lhs, const TValue2 &rhs)
template<typename TValue, typename TError, typename TError2>
ETL_CONSTEXPR14 bool | etl::operator!= (const etl::expected< TValue, TError > &lhs, const etl::unexpected< TError2 > &rhs)
template<typename TError, typename TError2>
ETL_CONSTEXPR14 bool | etl::operator!= (const etl::expected< void, TError > &lhs, const etl::expected< void, TError2 > &rhs)
template<typename TError, typename TError2>
ETL_CONSTEXPR14 bool | etl::operator!= (const etl::expected< void, TError > &lhs, const etl::unexpected< TError2 > &rhs)
template<typename TError, typename TError2>
ETL_CONSTEXPR14 bool | etl::operator!= (const etl::unexpected< TError > &lhs, const etl::unexpected< TError2 > &rhs)
template<typename TValue, typename TError>
ETL_CONSTEXPR14 void | etl::swap (etl::expected< TValue, TError > &lhs, etl::expected< TValue, TError > &rhs)
| Swap etl::expected.
template<typename TError>
ETL_CONSTEXPR14 void | etl::swap (etl::unexpected< TError > &lhs, etl::unexpected< TError > &rhs)
| Swap etl::unexpected.