Difference of keywords 'typename' and 'class' in templates?

后端 未结 5 622
南方客
南方客 2020-11-22 16:37

For templates I have seen both declarations:

template < typename T >
template < class T >

What\'s the difference?

And

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 17:13

    1. No difference
    2. Template type parameter Container is itself a template with two type parameters.

提交回复
热议问题