Item-42 Understand the two meanings of typename
· โ 4 min read
When declaring template parameters, both class
and typename
are interchangeable. When identifying nested dependent type names, use typename
, except in base class lists or as a base class identifier in a member initialization list.