Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
Inheritance Hierarchy
- TVariantStorage
- TDestructibleVariantStorage
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/TVariantMeta.h |
| Include | #include "Misc/TVariantMeta.h" |
Syntax
template<typename T>
struct TVariantStorage
Remarks
Determine the max alignof and sizeof of all types in a template parameter pack and provide a type that is compatible with those sizes
Variables
| Type | Name | Description | |
|---|---|---|---|
| TAlignedBytes< SizeofValue, AlignofValue > | Storage | ||
| uint8 | TypeIndex | Index into the template parameter pack for the type held. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| auto & | Interpret the underlying data as the type in the variant parameter pack at the compile-time index. | ||
| auto && | Interpret the underlying data as the type in the variant parameter pack at the compile-time index. | ||
| const auto & | Interpret the underlying data as the type in the variant parameter pack at the compile-time index. | ||
| SIZE_T | MaxAlignof () |
||
| SIZE_T | |||
| SIZE_T | MaxSizeof () |
Constants
| Name | Description |
|---|---|
| AlignofValue | |
| SizeofValue |