Synopsis
Declared in <llvm/Support/MSVCErrorWorkarounds.h>
template<typename T>
class MSVCPExpected
: public Expected<T>
Base Classes
Name |
Description |
Tagged union holding either a T or a Error. |
Type Aliases
Name |
Description |
Storage type for either a value or an error payload. |
|
Value type held when the Expected represents success. |
Member Functions
Name |
Description |
|
Constructors |
Move‐assign from another Expected<T>. |
|
Check that this Expected<T> is an error of type ErrT. |
|
|
|
Returns takeError() after moving the held T (if any) into |
|
Dereference operators |
|
Member access operators |
|
Take ownership of the stored error. After calling this the Expected<T> is in an indeterminate state that can only be safely destructed. No further calls (beside the destructor) should be made on the Expected<T> value. |
|
Return false if there is an error. |
Data Members
Name |
Description |
|
Storage for the contained error payload. |
|
Storage for the contained value. |
Non-Member Functions
Name |
Description |
Convert an Expected<T> to an ErrorOr<T>. |
|
Convert an Expected to an std::optional without doing anything. This method should be used only where an error can be considered a reasonable and expected return value. |
Created with MrDocs