November 2014
Beginner
632 pages
19h 31m
English
CHAPTER 16
![]()
Class Templates
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.
By the end of this chapter, you will have learned: