template 如何取得T的类型
template<class Type>
bool EndueValue(struct Node *pNode,Type *T)
{
if(CList::IsExistInList (pNode)==false)
return false;
Type *pData=T;
pNode->m_pData =pData;
return true;
}
如何知道pData指向的内存内容的值的类型呢.
比方说EndueValue(pnode,new int(97));EndueValue(pnode,"hello");我怎么样才知道到底是int型数据还是string型的.