![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Identity.h>
Public Types | |
| using | Type = T |
| using | type = 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)
Equivalent to C++20's std::type_identity.