Skip to Main Content
Practical C++
book

Practical C++

by Rob McGregor
August 1999
Beginner to intermediate content levelBeginner to intermediate
912 pages
15h 44m
English
Que
Content preview from Practical C++

Chapter 26. Using Templates

<feature>
  • Implement generic programming with templates

  • Create and use function and class templates

  • Understand how to use template parameters

  • Convert existing classes into class templates

</feature>

Conceptualizing Templates

The introduction of experimental templates into C++ in the late 1980s was a major breakthrough for the language. After a decade of experimentation, modification, and fine-tuning, templates have become firmly rooted in the Standard C++ Library. Templates provide the basis of generic programming in C++ and make possible the Standard Template Library, one of the major features of the Standard C++ Library.

For years I wrote off templates as being just another programming trick that I could do without, but ...

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

Practical C++ Programming, 2nd Edition

Practical C++ Programming, 2nd Edition

Steve Oualline
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 0789721449Purchase book