MySQL  8.0.28
Source Code Documentation
stdx::expected< T, E > Class Template Reference

#include <expected.h>

Inheritance diagram for stdx::expected< T, E >:
stdx::ExpectedImpl< T, E > stdx::base::assign_base< member_policy > stdx::base::ctor_base< member_policy > stdx::ExpectedImplBase

Additional Inherited Members

- Public Types inherited from stdx::ExpectedImpl< T, E >
using value_type = T
 
using error_type = E
 
using unexpected_type = unexpected< E >
 
- Public Member Functions inherited from stdx::ExpectedImpl< T, E >
template<bool B = std::is_default_constructible<T>::value, std::enable_if_t< B > * = nullptr>
constexpr ExpectedImpl ()
 
constexpr ExpectedImpl (const value_type &v)
 
constexpr ExpectedImpl (value_type &&v)
 
template<class... Args, typename std::enable_if_t< std::is_constructible< T, Args &&... >::value > * = nullptr>
constexpr ExpectedImpl (std::in_place_t, Args &&... args)
 
constexpr ExpectedImpl (const ExpectedImpl &other)
 
constexpr ExpectedImpl (ExpectedImpl &&other) noexcept(std::is_nothrow_move_constructible< E >::value &&std::is_nothrow_move_constructible< T >::value)
 
constexpr ExpectedImpl (const unexpected< E > &e)
 
constexpr ExpectedImpl (unexpected< E > &&e)
 
ExpectedImploperator= (ExpectedImpl const &other)
 
ExpectedImploperator= (ExpectedImpl &&other)
 
 ~ExpectedImpl ()
 
template<class U = T, class G = E>
std::enable_if_t<(std::is_move_constructible< U >::value||std::is_move_constructible< G >::value)> swap (ExpectedImpl &other) noexcept(std::is_nothrow_move_constructible< T >::value &&std::is_nothrow_move_constructible< E >::value)
 
constexpr const value_typevalue () const &
 
constexpr const value_type && value () const &&
 
value_typevalue () &
 
value_type && value () &&
 
value_typeoperator* () &
 
constexpr const value_typeoperator* () const &
 
value_typeoperator-> ()
 
constexpr const value_typeoperator-> () const
 
template<class U >
constexpr value_type value_or (U &&v) const &
 
template<class U >
constexpr value_type value_or (U &&v) &&
 
constexpr const error_typeerror () const &
 
constexpr const error_type && error () const &&
 
constexpr error_typeerror () &
 
constexpr error_type && error () &&
 
constexpr unexpected_type get_unexpected () const
 
- Public Member Functions inherited from stdx::ExpectedImplBase
constexpr ExpectedImplBase (bool has_value) noexcept
 
constexpr bool has_value () const
 
constexpr operator bool () const noexcept
 
void swap (ExpectedImplBase &other) noexcept
 

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