YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::ResultError< Error > Class Template Referencefinal

#include <result.hpp>

Inheritance diagram for yaclib::ResultError< Error >:
[legend]
Collaboration diagram for yaclib::ResultError< Error >:
[legend]

Public Member Functions

 ResultError (ResultError &&) noexcept(std::is_nothrow_move_constructible_v< Error >)=default
 
 ResultError (const ResultError &) noexcept(std::is_nothrow_copy_constructible_v< Error >)=default
 
ResultErroroperator= (ResultError &&) noexcept(std::is_nothrow_move_assignable_v< Error >)=default
 
ResultErroroperator= (const ResultError &) noexcept(std::is_nothrow_copy_assignable_v< Error >)=default
 
 ResultError (Error &&error) noexcept(std::is_nothrow_move_constructible_v< Error >)
 
 ResultError (const Error &error) noexcept(std::is_nothrow_copy_constructible_v< Error >)
 
ErrorGet () &noexcept
 
const ErrorGet () const &noexcept
 
const char * what () const noexcept final
 

Detailed Description

template<typename Error>
class yaclib::ResultError< Error >

Definition at line 46 of file result.hpp.

Constructor & Destructor Documentation

◆ ResultError() [1/4]

template<typename Error >
yaclib::ResultError< Error >::ResultError ( ResultError< Error > &&  ) const
defaultnoexcept

◆ ResultError() [2/4]

template<typename Error >
yaclib::ResultError< Error >::ResultError ( const ResultError< Error > &  ) const
defaultnoexcept

◆ ResultError() [3/4]

template<typename Error >
yaclib::ResultError< Error >::ResultError ( Error &&  error)
inlineexplicitnoexcept

Definition at line 53 of file result.hpp.

References yaclib::MakeContract().

◆ ResultError() [4/4]

template<typename Error >
yaclib::ResultError< Error >::ResultError ( const Error error)
inlineexplicitnoexcept

Definition at line 55 of file result.hpp.

Member Function Documentation

◆ Get() [1/2]

template<typename Error >
Error & yaclib::ResultError< Error >::Get ( ) &
inlinenoexcept

Definition at line 58 of file result.hpp.

◆ Get() [2/2]

template<typename Error >
const Error & yaclib::ResultError< Error >::Get ( ) const &
inlinenoexcept

Definition at line 61 of file result.hpp.

◆ operator=() [1/2]

template<typename Error >
ResultError & yaclib::ResultError< Error >::operator= ( const ResultError< Error > &  )
defaultnoexcept

◆ operator=() [2/2]

template<typename Error >
ResultError & yaclib::ResultError< Error >::operator= ( ResultError< Error > &&  )
defaultnoexcept

◆ what()

template<typename Error >
const char * yaclib::ResultError< Error >::what ( ) const
inlinefinalnoexcept

Definition at line 65 of file result.hpp.


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