|
|
| Result (const E &e) noexcept(std::is_nothrow_copy_constructible< E >::value) |
| |
|
| Result (E &&e) noexcept(std::is_nothrow_move_constructible< E >::value) |
| |
|
| Result (const Result &other) noexcept(std::is_nothrow_copy_assignable< E >::value) |
| |
|
| Result (Result &&other) noexcept(std::is_nothrow_move_assignable< E >::value) |
| |
|
Result & | operator= (Result const &other) noexcept(std::is_nothrow_copy_assignable< E >::value) |
| |
|
Result & | operator= (Result &&other) noexcept(std::is_nothrow_move_assignable< E >::value) |
| |
| template<typename... Args> |
| void | EmplaceError (Args &&...args) |
| | Construct a new error from the give argument(s) and assign it to the instance error. More...
|
| |
| void | Swap (Result &other) noexcept(std::is_nothrow_move_assignable< E >::value) |
| | Swap the current instance with another one. More...
|
| |
| constexpr bool | HasValue () const noexcept |
| | Indicate whether the instance contains an error or not. More...
|
| |
| constexpr | operator bool () const noexcept |
| |
|
constexpr void | operator* () const noexcept |
| |
|
constexpr void | operator-> () const noexcept |
| |
|
constexpr void | Value () const noexcept |
| | The function does nothing.
|
| |
| const E & | Error () const & |
| | Get instance possible error. More...
|
| |
| E && | Error () && |
| | Get instance possible error. More...
|
| |
| Optional< E > | Err () const & |
| | Get optional instance error. More...
|
| |
| Optional< E > | Err () && |
| | Get optional instance error. More...
|
| |
|
template<typename U > |
| void | ValueOr (U &&defaultValue) const noexcept |
| | The function does nothing.
|
| |
| template<typename G > |
| E | ErrorOr (G &&defaultError) const & |
| | Get the instance error or the default error. More...
|
| |
| template<typename G > |
| E | ErrorOr (G &&defaultError) && |
| | Get the instance error or the default error. More...
|
| |
| template<typename G > |
| bool | CheckError (G &&error) const |
| | Check an error with the instance error. More...
|
| |
| void | ValueOrThrow () const noexcept(false) |
| | Throw an exception. More...
|
| |
| template<typename F > |
| void | Resolve (F &&f) const |
| | Invoke a callable. More...
|
| |
| template<typename F > |
| auto | Bind (F &&f) const -> Result< decltype(f()), E > |
| | Create a new Result by invoking a callable. More...
|
| |
|
template<typename... Args> |
| Result< void, E > | FromError (Args &&...args) |
| |
template<typename E>
class ara::core::Result< void, E >
A wrapper around the callee's possible error.
- Template Parameters
-
| E | Callee's possible error type |