iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
iox2::bb::stl::Unexpected< E > Class Template Reference

#include <expected.hpp>

Public Member Functions

constexpr Unexpected (const Unexpected &)=default
 
constexpr Unexpected (Unexpected &&)=default
 
 ~Unexpected ()=default
 
auto operator= (const Unexpected &) -> Unexpected &=default
 
auto operator= (Unexpected &&) -> Unexpected &=default
 
template<typename Err = E>
constexpr Unexpected (Err &&err)
 
template<class... Args>
constexpr Unexpected (InPlaceT, Args &&... args)
 
constexpr auto error () &noexcept -> E &
 
constexpr auto error () const &noexcept -> const E &
 
constexpr auto error () &&noexcept -> E &&
 
constexpr auto error () const &&noexcept -> const E &&
 

Detailed Description

template<typename E>
class iox2::bb::stl::Unexpected< E >

Definition at line 33 of file expected.hpp.

Constructor & Destructor Documentation

◆ Unexpected() [1/4]

template<typename E >
constexpr iox2::bb::stl::Unexpected< E >::Unexpected ( const Unexpected< E > &  )
constexprdefault

◆ Unexpected() [2/4]

template<typename E >
constexpr iox2::bb::stl::Unexpected< E >::Unexpected ( Unexpected< E > &&  )
constexprdefault

◆ ~Unexpected()

template<typename E >
iox2::bb::stl::Unexpected< E >::~Unexpected ( )
default

◆ Unexpected() [3/4]

template<typename E >
template<typename Err = E>
constexpr iox2::bb::stl::Unexpected< E >::Unexpected ( Err &&  err)
inlineexplicitconstexpr

Definition at line 47 of file expected.hpp.

◆ Unexpected() [4/4]

template<typename E >
template<class... Args>
constexpr iox2::bb::stl::Unexpected< E >::Unexpected ( InPlaceT  ,
Args &&...  args 
)
inlineexplicitconstexpr

Definition at line 52 of file expected.hpp.

Member Function Documentation

◆ error() [1/4]

template<typename E >
constexpr auto iox2::bb::stl::Unexpected< E >::error ( ) && -> E&&
inlineconstexprnoexcept

Definition at line 64 of file expected.hpp.

◆ error() [2/4]

template<typename E >
constexpr auto iox2::bb::stl::Unexpected< E >::error ( ) & -> E&
inlineconstexprnoexcept

Definition at line 56 of file expected.hpp.

◆ error() [3/4]

template<typename E >
constexpr auto iox2::bb::stl::Unexpected< E >::error ( ) const && -> const E&&
inlineconstexprnoexcept

Definition at line 68 of file expected.hpp.

◆ error() [4/4]

template<typename E >
constexpr auto iox2::bb::stl::Unexpected< E >::error ( ) const & -> const E&
inlineconstexprnoexcept

Definition at line 60 of file expected.hpp.

◆ operator=() [1/2]

template<typename E >
auto iox2::bb::stl::Unexpected< E >::operator= ( const Unexpected< E > &  ) -> Unexpected &=default
default

◆ operator=() [2/2]

template<typename E >
auto iox2::bb::stl::Unexpected< E >::operator= ( Unexpected< E > &&  ) -> Unexpected &=default
default

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