65,186
社区成员




template<typename T>
void test()
{
// if( T == Fun )
// {
// DoSomething();
// }
std::cout << sizeof(T) << std::endl;
}
template<typename T>
void test()
{
printf("test");
}
template <>
void test<int>()
{
printf("test int");
}
#include <typeinfo> // 头文件
typeid(T).name(); // 返回T的类型名