TLE92466ED Driver 2.0.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
tle::unexpected< E > Class Template Reference

Wrapper for an error value (mirrors std::unexpected) More...

#include <tle92466ed_expected.hpp>

Public Member Functions

constexpr unexpected (const E &e) noexcept
 
constexpr unexpected (E &&e) noexcept
 
constexpr const E & error () const &noexcept
 
constexpr E & error () &noexcept
 
constexpr E && error () &&noexcept
 

Private Attributes

E error_
 

Detailed Description

template<typename E>
class tle::unexpected< E >

Wrapper for an error value (mirrors std::unexpected)

Template Parameters
EError type

Constructor & Destructor Documentation

◆ unexpected() [1/2]

template<typename E >
constexpr tle::unexpected< E >::unexpected ( const E &  e)
inlineexplicitconstexprnoexcept

◆ unexpected() [2/2]

template<typename E >
constexpr tle::unexpected< E >::unexpected ( E &&  e)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ error() [1/3]

template<typename E >
constexpr E && tle::unexpected< E >::error ( ) &&
inlineconstexprnoexcept

◆ error() [2/3]

template<typename E >
constexpr E & tle::unexpected< E >::error ( ) &
inlineconstexprnoexcept

◆ error() [3/3]

template<typename E >
constexpr const E & tle::unexpected< E >::error ( ) const &
inlineconstexprnoexcept

Member Data Documentation

◆ error_

template<typename E >
E tle::unexpected< E >::error_
private

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