Is it possible to define an alias for a template-template parameter?

后端 未结 2 446
臣服心动
臣服心动 2021-01-24 12:19

I\'m experimenting with template-template for fun. I have the following class:

template class T, typename R> class Unit
{    
    usi         


        
2条回答
  •  南方客
    南方客 (楼主)
    2021-01-24 12:55

    Since T isn't a type, the question as asked doesn't make sense. However, you can make an alias for T, like:

    template