CAF 0.17.6
|
The pattern expected<void>
shall be used for functions that may generate an error but would otherwise return bool
.
More...
#include <expected.hpp>
Inherited by caf::expected< unit_t >.
Public Member Functions | |
expected (unit_t) noexcept | |
expected (no_error_t) noexcept | |
expected (caf::error e) noexcept | |
expected (const expected &other) noexcept | |
expected (expected &&other) noexcept | |
template<class Code , class = enable_if_can_construct_error_t<Code>> | |
expected (Code code) | |
expected & | operator= (const expected &other)=default |
expected & | operator= (expected &&other) noexcept |
template<class Code > | |
enable_if_can_construct_error_t< Code, expected & > | operator= (Code code) |
operator bool () const | |
const caf::error & | error () const |
The pattern expected<void>
shall be used for functions that may generate an error but would otherwise return bool
.