mrdocs::Expected<T, E>
Expected specialization for void values. Holds either success (no payload) or an unexpected error E.
Synopsis
Declared in <mrdocs/Support/Expected.hpp>
template<
class T,
class E>
requires std::is_void_v<T>
class Expected<T, E>;
Types
Name |
Description |
Error type stored when disengaged. |
|
Rebind to another value type with the same error type. |
|
Alias for the unexpected wrapper. |
|
Value type for this specialization (always void). |
Member Functions
Name |
Description |
|
Constructors |
|
Destructors |
|
Assignment operators |
|
|
Reset to engaged state (no error). |
|
|
|
|
|
Return true when the Expected holds a value. |
|
Ensure the Expected is engaged; throws if it holds an error. |
|
|
|
Swap states with another void Expected. |
|
|
|
|
|
|
|
Return true when the Expected holds a value. |
Data Members
Name |
Description |
|
Stored unexpected error. |
|
Placeholder for the engaged state. |
Friends
| Name | Description |
|---|---|
Swap contents with another Expected. |
|
Equality operator |
|
Equality operator |
|
A container holding an error or a value. |
Created with MrDocs