|
LibQuicR
|
Wrapper that explicitly marks a value as an error. More...
#include <expected.h>
Public Member Functions | |
| Unexpected (const Unexpected &other)=default | |
| Copies an error wrapper. More... | |
| Unexpected (Unexpected &&other)=default | |
| Moves an error wrapper. More... | |
| template<typename T > | |
| Unexpected (T &&value) | |
| Constructs the error from a forwarded value. More... | |
| template<typename... Args> | |
| Unexpected (Args &&... args) | |
| Constructs the error in place from arguments. More... | |
| const E & | error () const |
Wrapper that explicitly marks a value as an error.
| E | Stored error type. |
|
default |
Copies an error wrapper.
| other | Wrapper to copy. |
|
default |
Moves an error wrapper.
| other | Wrapper to move. |
Constructs the error from a forwarded value.
| T | Source type accepted by E. |
| value | Value used to construct the error. |
|
inline |
Constructs the error in place from arguments.
| Args | Constructor argument types for E. |
| args | Arguments forwarded to E. |
|
inline |