Есть ли способ взять тип класса шаблона, например
//i have template function
template<typename T>
IData* createData();
//a template class instance
std::vector<int> a;
//using type of this instance in another template
//part in quotation mark is imaginary of course :D
IData* newData = createData<"typeOf(a)">();
возможно ли это в с++? или есть альтернатива ярлыку