Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/UnitConversion.inl |
Include |
#include "Math/UnitConversion.inl" |
template<typename ValueType, typename ErrorType>
class TValueOrError
Type used to return either some data, or an error
Name | Description | |
---|---|---|
|
TValueOrError ( |
Construct the result from a value, or an error (See MakeValue and MakeError) |
|
TValueOrError ( |
|
|
TValueOrError ( |
Move construction/assignment |
Name | Description | ||
---|---|---|---|
|
ErrorType & |
GetError() |
Get the error, if set |
|
const ErrorT... |
GetError() |
|
|
ValueType & |
GetValue() |
Access the value contained in this result |
|
const ValueT... |
GetValue() |
|
|
IsValid() |
Check whether this value is valid |
|
|
ErrorType |
StealError() |
Steal this result's error, if set, causing it to become unset |
|
ValueType |
StealValue() |
Steal this result's value, causing it to become unset |
Name | Description | ||
---|---|---|---|
|
TValueOrErro... |
operator= ( |