Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/Optional.h |
Include |
#include "Misc/Optional.h" |
template<typename OptionalType>
struct TOptional
When we have an optional value IsSet() returns true, and GetValue() is meaningful. Otherwise GetValue() is not meaningful.
Name | Description | |
---|---|---|
|
TOptional() |
Construct an OptionalType with no value; i.e. unset |
|
TOptional ( |
Construct an OptionaType with a valid value. |
|
TOptional ( |
|
|
TOptional ( |
Copy/Move construction |
|
TOptional ( |
|
|
TOptional ( |
Name | Description | |
---|---|---|
|
~TOptional() |
Name | Description | ||
---|---|---|---|
|
OptionalType... |
Emplace ( |
|
|
const Option... |
Get ( |
|
|
const Option... |
GetValue() |
|
|
OptionalType... |
GetValue() |
|
|
IsSet() |
||
|
Reset() |
Name | Description | ||
---|---|---|---|
|
operator bool() |
||
|
const Option... |
operator*() |
|
|
OptionalType... |
operator*() |
|
|
operator= ( |
||
|
operator= ( |
||
|
operator= ( |
||
|
operator= ( |
||
|
const Option... |
operator->() |
|
|
OptionalType... |
operator->() |
Name |
Description |
---|---|
ElementType |