Lesson 25. Templates

In this lesson, you will learn to declare and define templates. Templates enable you to build classes that work with a variety of types without having to rewrite the class for every type.

Get SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.