MySQL 8.0.40
Source Code Documentation
stdx::ExpectedImpl< void, E > Class Template Reference

#include <expected.h>

Inheritance diagram for stdx::ExpectedImpl< void, E >:
[legend]

Public Types

using value_type = void
 
using error_type = E
 
using unexpected_type = unexpected< E >
 

Public Member Functions

constexpr ExpectedImpl () noexcept
 
template<class... Args, std::enable_if_t< std::is_constructible_v< E, Args &&... > > * = nullptr>
constexpr ExpectedImpl (stdx::unexpect_t, Args &&...args)
 
constexpr ExpectedImpl (const ExpectedImpl &other)
 
constexpr ExpectedImpl (ExpectedImpl &&other) noexcept(std::is_nothrow_move_constructible< E >::value)
 
ExpectedImploperator= (ExpectedImpl const &other)
 
ExpectedImploperator= (ExpectedImpl &&other)
 
constexpr ExpectedImpl (const unexpected< E > &e)
 
constexpr ExpectedImpl (unexpected< E > &&e)
 
 ~ExpectedImpl ()
 
template<class G = E, std::enable_if_t< std::is_move_constructible< G >::value, void * > = nullptr>
void swap (ExpectedImpl &other) noexcept(std::is_nothrow_move_constructible< G >::value)
 
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
 

Private Attributes

base::storage_t< void, E > storage_
 

Member Typedef Documentation

◆ error_type

template<class E >
using stdx::ExpectedImpl< void, E >::error_type = E

◆ unexpected_type

template<class E >
using stdx::ExpectedImpl< void, E >::unexpected_type = unexpected<E>

◆ value_type

template<class E >
using stdx::ExpectedImpl< void, E >::value_type = void

Constructor & Destructor Documentation

◆ ExpectedImpl() [1/6]

template<class E >
constexpr stdx::ExpectedImpl< void, E >::ExpectedImpl ( )
inlineconstexprnoexcept

◆ ExpectedImpl() [2/6]

template<class E >
template<class... Args, std::enable_if_t< std::is_constructible_v< E, Args &&... > > * = nullptr>
constexpr stdx::ExpectedImpl< void, E >::ExpectedImpl ( stdx::unexpect_t  ,
Args &&...  args 
)
inlineconstexpr

◆ ExpectedImpl() [3/6]

template<class E >
constexpr stdx::ExpectedImpl< void, E >::ExpectedImpl ( const ExpectedImpl< void, E > &  other)
inlineconstexpr

◆ ExpectedImpl() [4/6]

template<class E >
constexpr stdx::ExpectedImpl< void, E >::ExpectedImpl ( ExpectedImpl< void, E > &&  other)
inlineconstexprnoexcept

◆ ExpectedImpl() [5/6]

template<class E >
constexpr stdx::ExpectedImpl< void, E >::ExpectedImpl ( const unexpected< E > &  e)
inlineconstexpr

◆ ExpectedImpl() [6/6]

template<class E >
constexpr stdx::ExpectedImpl< void, E >::ExpectedImpl ( unexpected< E > &&  e)
inlineconstexpr

◆ ~ExpectedImpl()

template<class E >
stdx::ExpectedImpl< void, E >::~ExpectedImpl ( )
inline

Member Function Documentation

◆ error() [1/4]

template<class E >
constexpr error_type & stdx::ExpectedImpl< void, E >::error ( ) &
inlineconstexpr

◆ error() [2/4]

template<class E >
constexpr error_type && stdx::ExpectedImpl< void, E >::error ( ) &&
inlineconstexpr

◆ error() [3/4]

template<class E >
constexpr const error_type & stdx::ExpectedImpl< void, E >::error ( ) const &
inlineconstexpr

◆ error() [4/4]

template<class E >
constexpr const error_type && stdx::ExpectedImpl< void, E >::error ( ) const &&
inlineconstexpr

◆ get_unexpected()

template<class E >
constexpr unexpected_type stdx::ExpectedImpl< void, E >::get_unexpected ( ) const
inlineconstexpr

◆ operator=() [1/2]

template<class E >
ExpectedImpl & stdx::ExpectedImpl< void, E >::operator= ( ExpectedImpl< void, E > &&  other)
inline

◆ operator=() [2/2]

template<class E >
ExpectedImpl & stdx::ExpectedImpl< void, E >::operator= ( ExpectedImpl< void, E > const &  other)
inline

◆ swap()

template<class E >
template<class G = E, std::enable_if_t< std::is_move_constructible< G >::value, void * > = nullptr>
void stdx::ExpectedImpl< void, E >::swap ( ExpectedImpl< void, E > &  other)
inlinenoexcept

Member Data Documentation

◆ storage_

template<class E >
base::storage_t<void, E> stdx::ExpectedImpl< void, E >::storage_
private

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