O'Reilly logo

Sams Teach Yourself C++ in 24 Hours, Third Edition by Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 23. Templates

In the past few years, C++ has added a few new features. One of the more exciting and powerful new aspects of C++ is templates. Templates enable you to build type-safe collections. In this hour you will learn

  • What templates are and how to use them

  • Why templates supply a better alternative to macros

  • How to create class templates

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required