This chapter covers more deeply the subject of generics. Generics are classes and functions that can operate just as easily on objects as primitive types. Qt container classes are generic, template-based classes, and we will see examples using lists, sets, and maps. Operators, managed containers, and resource sharing are also discussed.
Generics and Templates
Managed Containers, Composites, and Aggregates
Implicitly Shared Classes
Generics, Algorithms, and Operators
Sorted Map Example
C++ supports four distinct categories of types: