Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVariant
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TVariant () |
Test for 255 here, because the parameter pack doesn't include the initial T. | Misc/TVariant.h | |
| Copy construct the variant from another variant of the same type | Misc/TVariant.h | ||
| Move construct the variant from another variant of the same type | Misc/TVariant.h | ||
TVariant
(
TInPlaceType< U >&&, |
Perform in-place construction of a type into the variant | Misc/TVariant.h |
TVariant()
Description
Default initialize the TVariant to the first type in the parameter pack
| Name | TVariant |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/TVariant.h |
| Include Path | #include "Misc/TVariant.h" |
TVariant()
TVariant(const TVariant &)
Description
Copy construct the variant from another variant of the same type
| Name | TVariant |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/TVariant.h |
| Include Path | #include "Misc/TVariant.h" |
TVariant
(
const TVariant & Other
)
TVariant(TVariant &&)
Description
Move construct the variant from another variant of the same type
| Name | TVariant |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/TVariant.h |
| Include Path | #include "Misc/TVariant.h" |
TVariant
(
TVariant && Other
)
TVariant(TInPlaceType< U > &&, ArgTypes &&...)
Description
Perform in-place construction of a type into the variant
| Name | TVariant |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/TVariant.h |
| Include Path | #include "Misc/TVariant.h" |
template<typename U, typename... ArgTypes, std::enable_if_t<(std::is_constructible_v< U, ArgTypes... >), int >>
TVariant
(
TInPlaceType < U > &&,
ArgTypes &&... Args
)