sandbox
Loading...
Searching...
No Matches
sbx::utility::expected< Type, Error > Class Template Reference

Public Types

using value_type = Type
 
using error_type = Error
 
using unexpected_type = unexpected< Error >
 
template<typename Other >
using rebind = expected< Other, Error >
 

Public Member Functions

constexpr expected (const Type &value) noexcept
 
constexpr expected (const unexpected_type &unexpected) noexcept
 
constexpr auto has_value () const noexcept -> bool
 
constexpr operator bool () const noexcept
 
constexpr auto value () const -> const Type &
 
constexpr auto operator* () const -> const Type &
 
constexpr auto operator-> () const -> const Type *
 
constexpr auto error () const -> const Error &
 

The documentation for this class was generated from the following file: