I\'m experimenting with template-template for fun. I have the following class:
template class T, typename R> class Unit
{
usi
Since T
isn't a type, the question as asked doesn't make sense. However, you can make an alias for T
, like:
template class T, typename R> class Unit
{
template using MyTemplate = T;
// ...
// use e.g. MyTemplate to get T
};
Pre-C++11 you would need something more notationally involved as outlined in this answer of mine (and used, for example, in the standard library by the standard allocator's rebind
mechanic.)