May 2013
Intermediate to advanced
1376 pages
47h 26m
English
Euclid’s and Beethoven’s Fifth; knowing just one of them marks you as semi-educated.
– Stan Kelley-Bootle
• Parameterization and Hierarchy
Generated Types; Template Conversions
• Hierarchies of Class Templates
• Template Parameters as Base Classes
Composing Data Structures; Linearizing Class Hierarchies
• Advice
Templates and derivation are mechanisms for building new types out of existing ones, for specifying interfaces, and generally for writing useful code that exploits various forms of commonality:
• A template class defines an interface. The template’s own implementation and those of its specializations can be accessed through that interface. The source ...