iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
iox2::legacy::detail::expected_storage< ValueType, ErrorType > Class Template Reference

helper class to be able to handle 'void' value type specialization More...

#include <expected_helper.hpp>

Public Member Functions

 expected_storage () noexcept=delete
 
template<typename... Targs>
 expected_storage (in_place_t, Targs &&... args)
 
template<typename... Targs>
 expected_storage (unexpect_t, Targs &&... args)
 
bool has_value () const
 
bool has_error () const
 
ValueType & value_unchecked ()
 
const ValueType & value_unchecked () const
 
ErrorTypeerror_unchecked ()
 
const ErrorTypeerror_unchecked () const
 

Detailed Description

template<typename ValueType, typename ErrorType>
class iox2::legacy::detail::expected_storage< ValueType, ErrorType >

helper class to be able to handle 'void' value type specialization

Definition at line 106 of file expected_helper.hpp.

Constructor & Destructor Documentation

◆ expected_storage() [1/3]

template<typename ValueType , typename ErrorType >
iox2::legacy::detail::expected_storage< ValueType, ErrorType >::expected_storage ( )
deletenoexcept

◆ expected_storage() [2/3]

template<typename ValueType , typename ErrorType >
template<typename... Targs>
iox2::legacy::detail::expected_storage< ValueType, ErrorType >::expected_storage ( in_place_t  ,
Targs &&...  args 
)
inlineexplicit

Definition at line 111 of file expected_helper.hpp.

◆ expected_storage() [3/3]

template<typename ValueType , typename ErrorType >
template<typename... Targs>
iox2::legacy::detail::expected_storage< ValueType, ErrorType >::expected_storage ( unexpect_t  ,
Targs &&...  args 
)
inlineexplicit

Definition at line 117 of file expected_helper.hpp.

Member Function Documentation

◆ error_unchecked() [1/2]

template<typename ValueType , typename ErrorType >
ErrorType & iox2::legacy::detail::expected_storage< ValueType, ErrorType >::error_unchecked ( )
inline

Definition at line 137 of file expected_helper.hpp.

References iox2::legacy::always_false_v.

◆ error_unchecked() [2/2]

template<typename ValueType , typename ErrorType >
const ErrorType & iox2::legacy::detail::expected_storage< ValueType, ErrorType >::error_unchecked ( ) const
inline

Definition at line 141 of file expected_helper.hpp.

References iox2::legacy::always_false_v.

◆ has_error()

template<typename ValueType , typename ErrorType >
bool iox2::legacy::detail::expected_storage< ValueType, ErrorType >::has_error ( ) const
inline

Definition at line 125 of file expected_helper.hpp.

References iox2::legacy::variant< Types >::index().

◆ has_value()

template<typename ValueType , typename ErrorType >
bool iox2::legacy::detail::expected_storage< ValueType, ErrorType >::has_value ( ) const
inline

Definition at line 121 of file expected_helper.hpp.

References iox2::legacy::variant< Types >::index().

◆ value_unchecked() [1/2]

template<typename ValueType , typename ErrorType >
ValueType & iox2::legacy::detail::expected_storage< ValueType, ErrorType >::value_unchecked ( )
inline

Definition at line 129 of file expected_helper.hpp.

References iox2::legacy::always_false_v.

◆ value_unchecked() [2/2]

template<typename ValueType , typename ErrorType >
const ValueType & iox2::legacy::detail::expected_storage< ValueType, ErrorType >::value_unchecked ( ) const
inline

Definition at line 133 of file expected_helper.hpp.

References iox2::legacy::always_false_v.


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