O'Reilly logo

C++ How to Program, Sixth Edition by H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.

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

Chapter 14. Templates

 

Behind that outside pattern the dim shapes get clearer every day.

It is always the same shape, only very numerous.

 
 --Charlotte Perkins Gilman
 

Every man of genius sees the world at a different angle from his fellows.

 
 --Havelock Ellis
 

...our special individuality, as distinguished from our generic humanity.

 
 --Oliver Wendell Holmes, Sr

OBJECTIVES

In this chapter you’ll learn:

  • To use function templates to conveniently create a group of related (overloaded) functions.

  • To distinguish between function templates and function-template specializations.

  • To use class templates to create a group of related types.

  • To distinguish between class templates and class-template specializations.

  • To overload function templates.

  • To understand the relationships ...

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