iceoryx2
C++ 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>
iox2::bb::stl::Unexpected< E >::Unexpected ( const Unexpected< E > & )
constexprdefault

References Unexpected().

Referenced by operator=(), operator=(), Unexpected(), and Unexpected().

◆ Unexpected() [2/4]

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

References Unexpected().

◆ ~Unexpected()

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

◆ Unexpected() [3/4]

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

Definition at line 47 of file expected.hpp.

References iox2::bb::err().

◆ Unexpected() [4/4]

template<typename E>
template<class... Args>
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>
auto iox2::bb::stl::Unexpected< E >::error ( ) &&->E &&
inlineconstexprnoexcept

Definition at line 64 of file expected.hpp.

◆ error() [2/4]

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

Definition at line 56 of file expected.hpp.

◆ error() [3/4]

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

Definition at line 68 of file expected.hpp.

◆ error() [4/4]

template<typename E>
auto iox2::bb::stl::Unexpected< E >::error ( ) const &->constE &
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

References Unexpected().

◆ operator=() [2/2]

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

References Unexpected().


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