[type_traits] Checking for same class template

The type_trait is_same<T,T> can be used to check if two types are the same. Is there a type_trait to check if two templates are the same ? A template class I am developing takes as a template parameter a template rather than a class and I would like to check, to be used in MPL, whether the template being passed as a template parameter is the same as another template.

On 6/18/2010 9:36 AM, Edward Diener wrote:
The type_trait is_same<T,T> can be used to check if two types are the same. Is there a type_trait to check if two templates are the same ?
A template class I am developing takes as a template parameter a template rather than a class and I would like to check, to be used in MPL, whether the template being passed as a template parameter is the same as another template.
I realized the answer to this after I posted it so no one need reply. I can just create a type from the template and use is_same<T.T> to check the types.
participants (1)
-
Edward Diener