Chapter 37 Flashcards
1
Q
What is resolution order of compiler for templates
A
- first compiler search for complete specialization
- If it fails then it try to search partial specialization
- In the end it searches for general templates
2
Q
What is resolution order of compiler for template functions
A
- Ordinary function
- Complete specialization
- Partial specialization
- Generic template
3
Q
Is template compatible with inheritance
A
Yes
4
Q
What is the basic rule to work on templates in inheritance
A
The derived class must take at least as many template parameter as required in base class.
5
Q
Can class template inherit another class template
A
Yes
6
Q
Can we get complete specialization or ordinary class inherited from template class
A
No
7
Q
Can we get complete specialization or ordinary class from partial specialization
A
No