|
YACLib
C++ library for concurrent tasks execution
|
Result trait that plugs std::expected<V, E> into yaclib,. More...
#include <expected.hpp>
Public Types | |
| template<typename V > | |
| using | Result = std::expected< V, E > |
| using | Error = E |
| template<typename R > | |
| using | Value = typename yaclib::detail::InstantiationTypes< std::expected, R >::Value |
Static Public Member Functions | |
| template<typename V , typename... Args> | |
| static Result< V > | MakeResult (Args &&... args) |
| template<typename V > | |
| static bool | Ok (const Result< V > &r) noexcept |
| template<typename R > | |
| static decltype(auto) | GetValue (R &&r) noexcept |
| template<typename R > | |
| static decltype(auto) | GetError (R &&r) noexcept |
| template<typename R > | |
| static decltype(auto) | Get (R &&r) |
| static bool | IsStop (const E &error) noexcept |
Result trait that plugs std::expected<V, E> into yaclib,.
Requirements for E:
Definition at line 22 of file expected.hpp.
| using yaclib_ext::ExpectedTrait< E >::Error = E |
Definition at line 29 of file expected.hpp.
| using yaclib_ext::ExpectedTrait< E >::Result = std::expected<V, E> |
Definition at line 27 of file expected.hpp.
| using yaclib_ext::ExpectedTrait< E >::Value = typename yaclib::detail::InstantiationTypes<std::expected, R>::Value |
Definition at line 32 of file expected.hpp.
|
inlinestatic |
Definition at line 72 of file expected.hpp.
|
inlinestaticnoexcept |
Definition at line 67 of file expected.hpp.
|
inlinestaticnoexcept |
Definition at line 58 of file expected.hpp.
References yaclib::MakeContract().
|
inlinestaticnoexcept |
Definition at line 76 of file expected.hpp.
References yaclib::MakeContract().
|
inlinestatic |
Definition at line 35 of file expected.hpp.
|
inlinestaticnoexcept |
Definition at line 53 of file expected.hpp.