Class Templates Flashcards

1
Q

Function-template specializations

A

Range of related functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Class-template specializations

A

Range of related classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Class templates are called….

A

Parameterized types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is class template definition preceded with?

A

template<typename></typename>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

After writing first class template, how are new, non-type specific classes created?

A

By compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is T?

A

generic type name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Names of template parameters must be…..

A

Unique

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Can you specify default arguments in template type parameter lists?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If both a template and non template version of a function match a call, which will be used?

A

Non-template version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly