TVariantStorage

Determine the max alignof and sizeof of all types in a template parameter pack and provide a type that is compatible with those sizes

Windows
MacOS
Linux

Inheritance Hierarchy

TVariantStorage

TVariant

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/TVariantMeta.h

Include

#include "Misc/TVariantMeta.h"

Syntax

template<typename... Ts>
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

Name Description

Public variable

TAlignedBytes< ...

 

Storage

Functions

Name Description

Public function

auto &

 

GetValueAsIndexedType()

Interpret the underlying data as the type in the variant parameter pack at the compile-time index.

Public function Const

const auto &

 

GetValueAsIndexedType()

Interpret the underlying data as the type in the variant parameter pack at the compile-time index.

Public function Static

constexpr SI...

 

MaxAlignof()

Public function Static

constexpr SI...

 

MaxOf

(
    const SIZE_T Sizes
)

Public function Static

constexpr SI...

 

MaxSizeof()

Constants

Name

Description

AlignofValue

SizeofValue

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss