Itasca C++ Interface
Loading...
Searching...
No Matches
expected< T, E > Class Template Reference

Public Types

using value_type = T
using error_type = E
using unexpected_type = std::unexpected<E>

Public Member Functions

constexpr expected (const expected< T, E > &other)=default
constexpr expected (expected< T, E > &&other)=default
template<class U = T>
constexpr expected (const U &v)
template<class U = T>
constexpr expected (U &&v)
template<class U = E>
constexpr expected (const unexpected< U > &e)
template<class U = E>
constexpr expected (unexpected< U > &&e)
template<class ... Args>
constexpr expected (unexpect_t, Args &&...args)
constexpr const T * operator-> () const
constexpr T * operator-> ()
constexpr const T & operator* () const
constexpr T & operator* ()
constexpr bool has_value () const
constexpr operator bool () const
constexpr const T & value () const
constexpr T && value ()
constexpr const E & error () const
constexpr E && error ()
constexpr T value_or (T &&default_value) const
template<class F>
constexpr auto and_then (F &&f)
template<class F>
constexpr auto or_else (F &&f)

The documentation for this class was generated from the following file:
  • C:/Source/itasca-suite/common/base/src/expected.h