2

Possible Duplicate:
C++ difference of keywords ‘typename’ and ‘class’ in templates

Is there any point/advantage to using:

<class T>

as opposed to:

<typename T>

in C++?

Community
  • 1
  • 1

1 Answers1

8

There is no difference. The two can be used interchangeably.

jogojapan
  • 68,383
  • 11
  • 101
  • 131
Dillon Benson
  • 4,280
  • 4
  • 23
  • 25