C++ Templates: The Complete Guide / Edition 1

C++ Templates: The Complete Guide / Edition 1

by David Vandevoorde, Nicolai Josuttis, Nicolai M. Josuttis
     
 

Templates are among the most powerful features of C++, but they are too often neglected, misunderstood, and misused. C++ Templates: The Complete Guide provides software architects and engineers with a clear understanding of why, when, and how to use templates to build and maintain cleaner, faster, and smarter software more efficiently. C++ Templates begins with

See more details below

Overview

Templates are among the most powerful features of C++, but they are too often neglected, misunderstood, and misused. C++ Templates: The Complete Guide provides software architects and engineers with a clear understanding of why, when, and how to use templates to build and maintain cleaner, faster, and smarter software more efficiently. C++ Templates begins with an insightful tutorial on basic concepts and language features. The remainder of the book serves as a comprehensive reference, focusing first on language details, then on a wide range of coding techniques, and finally on advanced applications for templates. Examples used throughout the book illustrate abstract concepts and demonstrate best practices. Readers learn: The exact behaviors of templates How to avoid the pitfalls associated with templates Idioms and techniques, from the basic to the previously undocumented How to reuse source code without threatening performance or safety How to increase the efficiency of C++ programs How to produce more flexible and maintainable software This practical guide shows programmers how to exploit the full power of the template features in C++.

Read More

Product Details

ISBN-13:
9780201734843
Publisher:
Addison-Wesley
Publication date:
11/28/2002
Edition description:
New Edition
Pages:
528
Product dimensions:
7.50(w) x 9.50(h) x 1.20(d)

Table of Contents

Preface
Acknowledgments
1About This Book1
Pt. IThe Basics7
2Function Templates9
3Class Templates21
4Nontype Template Parameters35
5Tricky Basics43
6Using Templates in Practice61
7Basic Template Terminology87
Pt. IITemplates in Depth93
8Fundamentals in Depth95
9Names in Templates119
10Instantiation141
11Template Argument Deduction167
12Specialization and Overloading179
13Future Directions205
Pt. IIITemplates and Design229
14The Polymorphic Power of Templates231
15Traits and Policy Classes245
16Templates and Inheritance285
17Metaprograms301
18Expression Templates321
Pt. IVAdvanced Applications345
19Type Classification347
20Smart Pointers365
21Tuples395
22Function Objects and Callbacks417
App. AThe One-Definition Rule475
App. BOverload Resolution487
Bibliography499
Glossary507
Index517

Read More

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >