[ fromfile: generics-questions.xml id: generics-questions ]
Explain an important difference between a template parameter and a function parameter.
What does it mean to instantiate a template function? Describe one way to do this.
Normally, you need to place template definitions in header files. Why is this?
Some compilers support export
. What is it for?
Qt's container classes are used to collect value types. What kinds of things are not appropriate to store by value in a value collection?
Which containers provide a mapping from key to value? List and describe at least two, and tell how they are different from one another.
What does it mean for a container to "manage" its heap objects? How can a container of pointers to heap objects become a "managed container"?
Give at least three examples of Qt classes that implement the Flyweight pattern.
When defining a class template, how should the code be distributed between the header (.h) file and the implementation (.cpp) file? Explain your answer.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |