C++ variadic template template argument that matches any kind of parameters

后端 未结 3 1190
野的像风
野的像风 2021-01-30 16:38

I was wondering if it\'s possible to write a template function that can take any other arbitrary template as a parameter and properly match the template name (i.e. not just the

3条回答
  •  孤独总比滥情好
    2021-01-30 17:26

    It would be awesome if we had such thing, as it would allow us to write a is_same_template trait in a breeze.
    Until then, we specialize all the way.

提交回复
热议问题