Class Templates Flashcards
1
Q
Function-template specializations
A
Range of related functions
2
Q
Class-template specializations
A
Range of related classes
3
Q
Class templates are called….
A
Parameterized types
4
Q
What is class template definition preceded with?
A
template<typename></typename>
5
Q
After writing first class template, how are new, non-type specific classes created?
A
By compiler
6
Q
What is T?
A
generic type name
7
Q
Names of template parameters must be…..
A
Unique
8
Q
Can you specify default arguments in template type parameter lists?
A
Yes
9
Q
If both a template and non template version of a function match a call, which will be used?
A
Non-template version