engine
 
载入中...
搜索中...
未找到
所有成员列表
TIdentity< T > 模板结构体 参考

Returns the same type passed to it. 更多...

#include <Identity.h>

详细描述

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)


该结构体的文档由以下文件生成: