MySQL 26.7.0
Source Code Documentation
ut::Unexpected< E > Class Template Reference

C++23 std::unexpected. More...

#include <ut0expected.h>

Public Member Functions

template<class Err = E>
constexpr Unexpected (Err &&e)
 
constexpr const E & error () const &noexcept
 
constexpr E & error () &noexcept
 
constexpr const E && error () const &&noexcept
 
constexpr E && error () &&noexcept
 

Private Attributes

m_error
 

Detailed Description

template<class E>
class ut::Unexpected< E >

C++23 std::unexpected.

Constructor & Destructor Documentation

◆ Unexpected()

template<class E >
template<class Err = E>
constexpr ut::Unexpected< E >::Unexpected ( Err &&  e)
inlineexplicitconstexpr

Member Function Documentation

◆ error() [1/4]

template<class E >
constexpr E && ut::Unexpected< E >::error ( ) &&
inlineconstexprnoexcept

◆ error() [2/4]

template<class E >
constexpr E & ut::Unexpected< E >::error ( ) &
inlineconstexprnoexcept

◆ error() [3/4]

template<class E >
constexpr const E && ut::Unexpected< E >::error ( ) const &&
inlineconstexprnoexcept

◆ error() [4/4]

template<class E >
constexpr const E & ut::Unexpected< E >::error ( ) const &
inlineconstexprnoexcept

Member Data Documentation

◆ m_error

template<class E >
E ut::Unexpected< E >::m_error
private

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