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 ValueType>
class TValueOrError< ValueType, void >
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
ValueType & | GetValue () |
Access the value. Asserts if this does not have a value. |
![]() ![]() |
const ValueType & | GetValue () |
|
![]() |
ValueType | GetValue () |
|
![]() ![]() |
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. |
![]() |
ValueType | StealValue () |
Steal the value. Asserts if this does not have a value. This causes the value to be unset. |
![]() |
ValueType * | TryGetValue () |
Access the value if it is set. |
![]() ![]() |
const ValueType * | TryGetValue () |
|
![]() |
TValueOrError
(
TValueOrError_ValueProxy< ArgTypes... >&& Proxy |
Construct the value from a proxy from MakeValue. | |
![]() |
TValueOrError
(
TValueOrError_ErrorProxy<>&& Proxy |
Construct the error from a proxy from MakeError. |