C++ Get name of type in template

The solution is

typeid(T).name()

which returns std::type_info.

Leave a Comment