MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Mcro::Templates::TTypes< T > Struct Template Reference

This template is used to store pack of types in other templates, or to allow parameter pack inference for functions. This template may be referred to as 'type-list' in other parts of the documentation. More...

#include <Templates.h>

Public Types

template<size_t I>
using Get = TTypeAtPack<I, T...>
 
template<size_t I>
using GetDecay = TTypeAtPackDecay<I, T...>
 

Static Public Attributes

static constexpr size_t Count = sizeof...(T)
 

Detailed Description

template<typename... T>
struct Mcro::Templates::TTypes< T >

This template is used to store pack of types in other templates, or to allow parameter pack inference for functions. This template may be referred to as 'type-list' in other parts of the documentation.

This may be much safer to use than tuples as they may try to use deleted features of listed types (especially Unreal tuples). TTypes will never attempt to use its arguments (not even in decltype or declval contexts)

Definition at line 105 of file Templates.h.

Member Typedef Documentation

◆ Get

template<typename... T>
template<size_t I>
using Mcro::Templates::TTypes< T >::Get = TTypeAtPack<I, T...>

Definition at line 110 of file Templates.h.

◆ GetDecay

template<typename... T>
template<size_t I>
using Mcro::Templates::TTypes< T >::GetDecay = TTypeAtPackDecay<I, T...>

Definition at line 113 of file Templates.h.

Field Documentation

◆ Count

template<typename... T>
size_t Mcro::Templates::TTypes< T >::Count = sizeof...(T)
staticconstexpr

Definition at line 107 of file Templates.h.


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