mrdocs::Expected<T&, E>
Expected specialization for lvalue references. Holds either a bound reference to T or an unexpected error E.
Synopsis
Declared in <mrdocs/Support/Expected.hpp>
template<
class T,
class E>
class Expected<T&, E>;
Type Aliases
Name |
Description |
Error type carried when disengaged. |
|
Rebind the reference to another value type while keeping |
|
Convenience alias for the unexpected wrapper. |
|
Referenced value type. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy the held error when disengaged. |
Assignment operators |
|
|
|
|
|
|
|
|
|
Check whether the Expected currently contains a reference. |
|
Dereference operators |
|
Access the bound reference pointer; undefined if disengaged. |
|
|
|
Swap state with another reference Expected. |
|
|
|
|
|
|
|
|
|
Return true when a reference is bound. |
Data Members
Name |
Description |
|
Pointer to the referenced value when engaged. |
|
Stored unexpected error when disengaged. |
Friends
Name |
Description |
Equality operator |
|
Equality operator |
|
Equality operator |
|
Created with MrDocs