Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/ValueOrError.h |
Include | #include "Templates/ValueOrError.h" |
Syntax
template<typename ErrorType>
class TValueOrError< void, ErrorType >
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
ErrorType & | GetError () |
Access the error. Asserts if this does not have an error. |
![]() ![]() |
const ErrorType & | GetError () |
|
![]() |
ErrorType | GetError () |
|
![]() ![]() |
bool | HasError () |
Whether the error is set. An error does imply no value. |
![]() ![]() |
bool | HasValue () |
Whether the value is set. A value does imply no error. |
![]() |
ErrorType | StealError () |
Steal the error. Asserts if this does not have an error. This causes the error to be unset. |
![]() |
ErrorType * | TryGetError () |
Access the error if it is set. |
![]() ![]() |
const ErrorType * | TryGetError () |
|
![]() |
TValueOrError
(
TValueOrError_ValueProxy<>&& Proxy |
Construct the value from a proxy from MakeValue. | |
![]() |
TValueOrError
(
TValueOrError_ErrorProxy< ArgTypes... >&& Proxy |
Construct the error from a proxy from MakeError. |