Template Class Expected< T, E >#
Defined in File Expected.h
Class Documentation#
-
template<typename T, typename E>
class Expected<T, E># Public Types
-
using unexpected_type = Unexpected<E>#
-
template<typename U>
using rebind = Expected<U, error_type>#
Public Functions
-
inline constexpr Expected() noexcept#
- template<typename U, typename G> constexpr explicit (!std::is_convertible_v< const G &, E >) Expected(const Expected< U
- inline constexpr G &other noexcept (std::is_nothrow_constructible_v< E, const G & >)
- template<typename U, typename G> constexpr explicit (!std::is_convertible_v< G, E >) Expected(Expected< U
- inline constexpr G &&other noexcept (std::is_nothrow_constructible_v< E, G >)
-
template<typename G = E>
inline explicit(!std::is_convertible_v<const G&, E>) constexpr Expected(const Unexpected<G> &u) noexcept(std::is_nothrow_constructible_v<E, const G&>)#
-
template<typename G = E>
inline explicit(!std::is_convertible_v<G, E>) constexpr Expected(Unexpected<G> &&u) noexcept(std::is_nothrow_constructible_v<E, G>)#
-
inline explicit constexpr Expected(std::in_place_t _) noexcept#
-
template<typename ...Args>
inline explicit constexpr Expected(Unexpect_t _, Args&&... args) noexcept(std::is_nothrow_constructible_v<E, Args...>)#
-
template<typename U, typename ...Args>
inline explicit constexpr Expected(Unexpect_t _, std::initializer_list<U> il, Args&&... args) noexcept(std::is_nothrow_constructible_v<E, std::initializer_list<U>&, Args...>)#
-
constexpr ~Expected() = default#
-
inline constexpr ~Expected()
-
inline constexpr Expected &operator=(const Expected &other) noexcept(std::conjunction_v<std::is_nothrow_copy_constructible<E>, std::is_nothrow_copy_assignable<E>>)
-
inline constexpr Expected &operator=(Expected &&other) noexcept(std::conjunction_v<std::is_nothrow_move_constructible<E>, std::is_nothrow_move_assignable<E>>)#
-
template<typename G>
inline constexpr Expected &operator=(const Unexpected<G> &e)#
-
template<typename G>
inline constexpr Expected &operator=(Unexpected<G> &&e)#
-
inline constexpr void Emplace() noexcept#
-
inline constexpr void Swap(Expected &other) noexcept(std::conjunction_v<std::is_nothrow_swappable<E&>, std::is_nothrow_move_constructible<E>>)#
-
inline explicit constexpr operator bool() const noexcept#
-
inline constexpr bool HasValue() const noexcept#
-
inline constexpr void operator*() const noexcept#
-
inline constexpr void Value() const &#
-
inline constexpr void Value() &&#
-
using unexpected_type = Unexpected<E>#