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

#include <UnrealTemplate.h>

Public Types

typedef T Type
 

Detailed Description

template<typename T>
struct TIdentity< T >

Returns the same type passed to it. This is useful in a few cases, but mainly for inhibiting template argument deduction in function arguments, e.g.:

template <typename T> void Func1(T Val); // Can be called like Func(123) or Func<int>(123);

template <typename T> void Func2(typename TIdentity<T>::Type Val); // Must be called like Func<int>(123)

Definition at line 558 of file UnrealTemplate.h.

Member Typedef Documentation

◆ Type

template<typename T >
typedef T TIdentity< T >::Type

Definition at line 560 of file UnrealTemplate.h.


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