Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TVariantTraits< T > Struct Template Reference

#include <Variant.h>

Static Public Member Functions

static CONSTEXPR EVariantTypes GetType ()
 

Detailed Description

template<typename T>
struct TVariantTraits< T >

Stub for variant type traits.

Actual type traits need to be declared through template specialization for custom data types that are to be used in FVariant. Traits for the most commonly used built-in types are declared below.

Complex types, such as structures and classes can be serialized into a byte array and then assigned to a variant. Note that you will be responsible for ensuring correct byte ordering when serializing those types.

Parameters
TThe type to be used in FVariant.

Definition at line 96 of file Variant.h.

Member Function Documentation

◆ GetType()

template<typename T >
static CONSTEXPR EVariantTypes TVariantTraits< T >::GetType ( )
inlinestatic

Definition at line 98 of file Variant.h.


The documentation for this struct was generated from the following file: