Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/Identity.h |
Include |
#include "Templates/Identity.h" |
template<typename T>
struct TIdentity
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)
Name |
Description |
---|---|
Type |