C++: NonType template : struct |
Objectives :
- use this illustration
A Non-Type Template parameter must be other than the keywords
"class" or" typename", the candidates are integer, enumeration,
the member of primitive data types, pointer member data type and
so on.
These could be used as a volatile or constant data type; and
floating , object of struct or class are not allowed in non-type
template parameter.
- code :
myStructNonTypeTemplate1.txt
|
Step: 1 Create a project myStructNonTypeTemplate1
|
Step: 2 Create a source file
|
Step: 3 Edit Source code
a) using scope resolution operator
|
Step: 4 Runtime View
|
Step: 5b
|
|