MySQL 8.0.40
Source Code Documentation
stdx::unexpected< E > Class Template Reference

#include <expected.h>

Public Types

using error_type = E
 

Public Member Functions

 unexpected ()=delete
 
constexpr unexpected (error_type &&e)
 
constexpr unexpected (const error_type &e)
 
template<class... Args, std::enable_if_t< std::is_constructible_v< E, Args &&... > > * = nullptr>
constexpr unexpected (std::in_place_t, Args &&...args)
 
constexpr error_typevalue () &noexcept
 
constexpr const error_typevalue () const &noexcept
 
constexpr error_type && value () &&noexcept
 
constexpr const error_type && value () const &&noexcept
 

Private Attributes

error_type error_
 

Member Typedef Documentation

◆ error_type

template<typename E >
using stdx::unexpected< E >::error_type = E

Constructor & Destructor Documentation

◆ unexpected() [1/4]

template<typename E >
stdx::unexpected< E >::unexpected ( )
delete

◆ unexpected() [2/4]

template<typename E >
constexpr stdx::unexpected< E >::unexpected ( error_type &&  e)
inlineexplicitconstexpr

◆ unexpected() [3/4]

template<typename E >
constexpr stdx::unexpected< E >::unexpected ( const error_type e)
inlineexplicitconstexpr

◆ unexpected() [4/4]

template<typename E >
template<class... Args, std::enable_if_t< std::is_constructible_v< E, Args &&... > > * = nullptr>
constexpr stdx::unexpected< E >::unexpected ( std::in_place_t  ,
Args &&...  args 
)
inlineexplicitconstexpr

Member Function Documentation

◆ value() [1/4]

template<typename E >
constexpr error_type && stdx::unexpected< E >::value ( ) &&
inlineconstexprnoexcept

◆ value() [2/4]

template<typename E >
constexpr error_type & stdx::unexpected< E >::value ( ) &
inlineconstexprnoexcept

◆ value() [3/4]

template<typename E >
constexpr const error_type && stdx::unexpected< E >::value ( ) const &&
inlineconstexprnoexcept

◆ value() [4/4]

template<typename E >
constexpr const error_type & stdx::unexpected< E >::value ( ) const &
inlineconstexprnoexcept

Member Data Documentation

◆ error_

template<typename E >
error_type stdx::unexpected< E >::error_
private

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