If I have a template class, for example:
template<typename T> class Type { };
Without modifying the Type any way, is there an easy way to specialize it for all those types that match the compilation condition? For example, if I wanted to specialize in Type for all integral types, I would like to do something like this (just something that works):
template<typename T> class Type<std::enable_if<std::is_integral<T>, T>::type> { };
source share