#include <expect.h>
Definition at line 344 of file expect.h.
◆ error_type
◆ value_type
◆ expect() [1/3]
Create a successful object.
Definition at line 353 of file expect.h.
◆ expect() [2/3]
Definition at line 357 of file expect.h.
361 code_ = ::common_error::kInvalidErrorCode;
bool has_error() const noexcept
◆ expect() [3/3]
◆ ~expect()
◆ equal() [1/2]
◆ equal() [2/2]
| bool expect< void >::equal |
( |
std::error_code const & |
rhs | ) |
const |
|
inlinenoexcept |
◆ error()
| std::error_code expect< void >::error |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Error - alway
Definition at line 375 of file expect.h.
◆ has_error()
- Returns
- True if
this is storing an error instead of a value.
Definition at line 372 of file expect.h.
372 {
return bool(code_); }
◆ matches()
| bool expect< void >::matches |
( |
std::error_condition const & |
rhs | ) |
const |
|
inlinenoexcept |
- Returns
- False if
has_value(), otherwise error() == rhs.
Definition at line 390 of file expect.h.
◆ operator bool()
- Returns
- True if
this is storing a value instead of an error.
Definition at line 369 of file expect.h.
◆ operator=()
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-4.0.0.0/src/common/expect.h