August 2004
Intermediate to advanced
352 pages
7h 38m
English
Difficulty: 4
To get our feet wet before delving into Item 6, consider this simple example of flexible generic code in C++. The code examples in this Item and the next are taken from Exceptional C++ [Sutter00, page 42].
“C++ templates provide compile-time polymorphism.” Explain.
When we think of polymorphism in an object-oriented world, we think of ...