tetl 0.1.0
Embedded Template Library
|
#include <unexpected.hpp>
Public Member Functions | |
template<typename Err = E> requires (not etl::is_same_v<etl::remove_cvref_t<Err>, unexpected> // and not etl::is_same_v<etl::remove_cvref_t<Err>, etl::in_place_t> // and etl::is_constructible_v<E, Err>) | |
constexpr | unexpected (Err &&e) |
template<typename... Args> requires etl::is_constructible_v<E, Args...> | |
constexpr | unexpected (etl::in_place_t, Args &&... args) |
constexpr | unexpected (unexpected &&)=default |
constexpr | unexpected (unexpected const &)=default |
constexpr auto | error () &&noexcept -> E && |
constexpr auto | error () &noexcept -> E & |
constexpr auto | error () const &&noexcept -> E const && |
constexpr auto | error () const &noexcept -> E const & |
constexpr auto | operator= (unexpected &&) -> unexpected &=default |
constexpr auto | operator= (unexpected const &) -> unexpected &=default |
constexpr auto | swap (unexpected &other) noexcept(etl::is_nothrow_swappable_v< E >) -> void |
Friends | |
template<typename E2> | |
constexpr auto | operator== (unexpected const &lhs, unexpected< E2 > const &rhs) -> bool |
constexpr auto | swap (unexpected &x, unexpected &y) noexcept(noexcept(x.swap(y))) -> void requires(etl::is_swappable_v< E >) |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
constexprdefault |
|
constexprdefault |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
constexprdefault |
|
constexprdefault |
|
inlineconstexprnoexcept |
|
friend |
|
friend |