mrdocs::polyfill::expected<T, E>
expected specialization for void values. Holds either success (no payload) or an unexpected error E.
Synopsis
Declared in <mrdocs/polyfill/expected.hpp>
template<
class T,
class E>
requires std::is_void_v<T>
class expected<T, E>;
Type Aliases
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