Templates in c++,typename and class

后端 未结 2 1301
执念已碎
执念已碎 2020-12-20 20:16

What is the difference between writing a template in c++ in the below both ways

template & template<

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-20 20:52

    These keywords are there because of historical reason. There's no difference between them. Read this: http://blogs.msdn.com/b/slippman/archive/2004/08/11/212768.aspx

提交回复
热议问题