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