Swipe to navigate through the chapters of this book
You learned about templates that the compiler uses to create functions back in Chapter 8; this chapter is about templates the compiler can use to create classes. Class templates are a powerful mechanism for generating new class types automatically. A significant portion of the Standard Library is built entirely on the ability to define templates, particularly the Standard Template Library, which includes many class and function templates.
Please log in to get access to this content
To get access to this content you need the following product:
- Class Templates
- Sequence number
- Chapter number
- Chapter 16