Skip to Content
C++ How to Program, Sixth Edition
book

C++ How to Program, Sixth Edition

by P. J. Deitel - Deitel & Associates, Inc., H. M. Deitel - Deitel & Associates, Inc.
July 2007
Beginner to intermediate
1504 pages
44h 24m
English
Pearson
Content preview from C++ How to Program, Sixth Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ How to Program, 10/e

C++ How to Program, 10/e

Paul Deitel, Harvey Deitel
C++ How to Program, Ninth Edition

C++ How to Program, Ninth Edition

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9780136085669Purchase book