|
| | Result () noexcept |
| |
| | Result (StopTag) noexcept |
| |
| | Result (std::exception_ptr error) noexcept |
| |
| template<typename... Args> |
| | Result (std::in_place_t, Args &&... args) noexcept(std::is_nothrow_constructible_v< V, Args &&... >) |
| |
| template<typename... Args, typename = std::enable_if_t<(sizeof...(Args) > 1) || !(std::is_same_v<std::decay_t<head_t<Args&&...>>, Result> || std::is_same_v<std::decay_t<head_t<Args&&...>>, std::exception_ptr> || std::is_same_v<std::decay_t<head_t<Args&&...>>, StopTag> || std::is_same_v<std::decay_t<head_t<Args&&...>>, std::in_place_t>)>> |
| | Result (Args &&... args) noexcept(std::is_nothrow_constructible_v< V, Args &&... >) |
| |
| | Result (const Result &other) noexcept(std::is_nothrow_copy_constructible_v< V >) |
| |
| | Result (Result &&other) noexcept(std::is_nothrow_move_constructible_v< V >) |
| |
| Result & | operator= (const Result &other) noexcept(std::is_nothrow_copy_constructible_v< V > &&std::is_nothrow_copy_assignable_v< V >) |
| |
| Result & | operator= (Result &&other) noexcept(std::is_nothrow_move_constructible_v< V > &&std::is_nothrow_move_assignable_v< V >) |
| |
| template<typename Arg , typename = std::enable_if_t<!std::is_same_v<std::decay_t<Arg>, Result>>> |
| Result & | operator= (Arg &&arg) |
| |
| | ~Result () noexcept |
| |
| | operator bool () const noexcept |
| |
| void | Ok () &=delete |
| |
| void | Ok () const &&=delete |
| |
| void | Value () &=delete |
| |
| void | Value () const &&=delete |
| |
| void | Error () &=delete |
| |
| void | Error () const &&=delete |
| |
| V && | Ok () && |
| |
| const V & | Ok () const & |
| |
| V && | Value () &&noexcept |
| |
| const V & | Value () const &noexcept |
| |
| const std::exception_ptr & | Error () &&noexcept |
| |
| const std::exception_ptr & | Error () const &noexcept |
| |
Encapsulated return value from caller.
Either a value of type V or a std::exception_ptr. Default constructed Result contains the stop error,
- See also
- StopPtr
- Template Parameters
-
| ValueT | type of value that stored in Result |
- Examples
- simple.cpp.
Definition at line 52 of file result.hpp.