purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
purify::Unexpected< E > Class Template Reference

#include <expected.hpp>

Public Member Functions

constexpr Unexpected (const E &error)
constexpr Unexpected (E &&error)
constexpr E & error () &noexcept
constexpr const E & error () const &noexcept
constexpr E && error () &&noexcept
constexpr const E && error () const &&noexcept

Detailed Description

template<typename E>
class purify::Unexpected< E >

Definition at line 37 of file expected.hpp.

Constructor & Destructor Documentation

◆ Unexpected() [1/2]

template<typename E>
purify::Unexpected< E >::Unexpected ( const E & error)
inlineexplicitconstexpr

Definition at line 39 of file expected.hpp.

References error().

◆ Unexpected() [2/2]

template<typename E>
purify::Unexpected< E >::Unexpected ( E && error)
inlineexplicitconstexpr

Definition at line 40 of file expected.hpp.

References error().

Member Function Documentation

◆ error() [1/4]

template<typename E>
E && purify::Unexpected< E >::error ( ) &&
inlinenodiscardconstexprnoexcept

Definition at line 50 of file expected.hpp.

◆ error() [2/4]

template<typename E>
E & purify::Unexpected< E >::error ( ) &
inlinenodiscardconstexprnoexcept

Definition at line 42 of file expected.hpp.

Referenced by Unexpected(), and Unexpected().

◆ error() [3/4]

template<typename E>
const E && purify::Unexpected< E >::error ( ) const &&
inlinenodiscardconstexprnoexcept

Definition at line 54 of file expected.hpp.

◆ error() [4/4]

template<typename E>
const E & purify::Unexpected< E >::error ( ) const &
inlinenodiscardconstexprnoexcept

Definition at line 46 of file expected.hpp.


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