If a pointer to a user-defined type is passed as a template argument to the template class, is it possible to get the class type of the argument?
template <class T> struct UserType {
typedef T value_type;
...
};
int main () {
typedef std::vector<UserType<double>*> vecType
vecType vec;
vecType::value_type::value_type m;
return 0;
}
source
share