#include <expect.h>
|
| static void | throw_ (std::error_code ec, const char *msg, const char *file, unsigned line) |
| template<typename T> |
| static T | unwrap (::expect< T > &&result, const char *error_msg, const char *file, unsigned line) |
| | If result.has_error() call throw_. Otherwise,.
|
| static void | unwrap (::expect< void > &&result, const char *error_msg, const char *file, unsigned line) |
| | If result.has_error() call throw_.
|
◆ throw_()
| void expect< T >::throw_ |
( |
std::error_code | ec, |
|
|
const char * | msg, |
|
|
const char * | file, |
|
|
unsigned | line ) |
|
static |
- Exceptions
-
| std::system_error | with ec, optional msg and/or optional file + line. |
◆ unwrap() [1/2]
| T detail::expect::unwrap |
( |
::expect< T > && | result, |
|
|
const char * | error_msg, |
|
|
const char * | file, |
|
|
unsigned | line ) |
|
inlinestatic |
If result.has_error() call throw_. Otherwise,.
- Returns
- *result by move.
◆ unwrap() [2/2]
If result.has_error() call throw_.
The documentation for this struct was generated from the following files: