C++ Templates: The Complete Guide and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $16.55 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading C++ Templates: The Complete Guide on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

C++ Templates: The Complete Guide [Hardcover]

David Vandevoorde , Nicolai M. Josuttis
4.8 out of 5 stars  See all reviews (34 customer reviews)

Buy New
$52.38 & FREE Shipping. Details
Rent
$33.04 & this item ships for FREE with Super Saver Shipping. Details
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
In Stock.
Rented by RentU and Fulfilled by Amazon.
Want it Tuesday, May 21? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $36.47  
Hardcover $52.38  
Paperback --  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now
There is a newer edition of this item:
C++ Templates C++ Templates
Sign up to be notified when this item becomes available.

Book Description

November 22, 2002 0201734842 978-0201734843 1
This book will be the next C++ classic. Although templates have been part of C++ for well over a decade, they still lead to misunderstanding, misuse, and controversy. At the same time, they are increasingly found to be powerful instruments for the development of cleaner, faster, and smarter software. This has made templates one of the hottest topics in the C++ community. This book will be both a complete reference as well as a tutorial. It will emphasize the practical use of templates, and will include real-world examples. Every working C++ programmer will need a copy of this book for his or her library.

Frequently Bought Together

C++ Templates: The Complete Guide + The C++ Standard Library: A Tutorial and Reference (2nd Edition)
Price for both: $104.40

Buy the selected items together


Editorial Reviews

From the Back Cover

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

The companion Web site at http://www.josuttis.com/tmplbook/ contains sample code and additional updates.



0201734842B09172002

About the Author

David Vandevoorde is an engineer at the Edison Design Group. He is an active member of the ANSI C++ Standards Committee, and a cofounder of the newsgroup comp.lang.c++.moderated. A graduate of the Brussels Free University and the Rensselaer Polytechnic Institute, his interests include algorithm development, programming languages, and teaching. See www.vandevoorde.com.

Nicolai M. Josuttis is an independent technical consultant who designs object-oriented software for the telecommunications, traffic, finance, and manufacturing industries. He is an active member of the C++ Standards Committee Library Working Group. Nicolai has written several books on object-oriented programming and C++. See www.josuttis.com.



0201734842AB09172002

Product Details

  • Hardcover: 552 pages
  • Publisher: Addison-Wesley Professional; 1 edition (November 22, 2002)
  • Language: English
  • ISBN-10: 0201734842
  • ISBN-13: 978-0201734843
  • Product Dimensions: 7.8 x 1.5 x 9.5 inches
  • Shipping Weight: 2.2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (34 customer reviews)
  • Amazon Best Sellers Rank: #222,599 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.8 out of 5 stars
(34)
4.8 out of 5 stars
The templates are one of the most powerful feature of C++. Baptiste Wicht  |  7 reviewers made a similar statement
It also very well writing and organized. scan gen  |  6 reviewers made a similar statement
This is another must-have book for people who want to understand all of C++. Hyman Rosen  |  6 reviewers made a similar statement
Most Helpful Customer Reviews
36 of 36 people found the following review helpful
5.0 out of 5 stars Comprehensive and Thorough January 1, 2003
Format:Hardcover
This is a book that the C++ community has been in need of for several years, and it seems that an ideal team of authors has come together for this: Nicolai Josuttis again contributes the thoroughness and lucid writing that has made his earlier book _The C++ Standard Library_ such a pleasure to read, and David Vandevoorde contributes historical background about the evolution of C++ standard and its implementations that help to understand some of the peculiarities of how C++ works today and some of the directions it's likely to evolve in.

The book is divided into 4 parts. Part I gives a basic overview of the template mechanisms in C++ and part II goes into more detail on this. Part III applies templates to standard problems, while part IV covers more exotic uses of templates similar to what is discussed in Alexandrescu's _Modern C++ Design_. Even for a reasonably experienced template user like me, there were many details I learned even from the most fundamental part I.

This is a near perfect book (apart from a few apparent bugs in the code examples that hopefully will get corrected) that will greatly benefit any programmer who works with template based code.

Comment | 
Was this review helpful to you?
32 of 33 people found the following review helpful
5.0 out of 5 stars Nice, but may not be a good first choice. December 27, 2004
Format:Hardcover
This book is encyclopedic. It will tell you everything about templates, both every detail at the language level and everything interesting someone has done with templates in the last 10 years. It even tells you furture changes that might happen to templates in 4-8 years when the C++ standard is revised. This last is useful to know, to keep in mind what templates cannot do, as sometimes it feels like templates can do anything. Though the writing is somewhat dry, it is always clean and to-the-point, and the authors have the highest reputations for accuracy and expertise.

The entire last 200 pages of this 500 page book, from Metaprograms on through the entire section on Advanced Applications, describe things software developers should look to libraries for. Smart pointers, generic functors, metaprogramming, etc., are all weak without a supporting library, and there are good libraries freely available. The book gives references to them, which is good, but it mainly tells you how to write similar things from scratch, which is somewhat useless except to the few hundred living people who write the libraries. Unless you were curious, that is.

The only technique I will be using myself in production code, as opposed to getting from quality libraries, is traits and policies. The book does spend 40 pages covering this, and it touches all the bases, but _Modern C++ Design_ has a much fuller coverage, which this book admits at the end of its section.

Although this book is excellent, and you will eventually want it to reach "guru" status as your understanding of templates grows, you may want _Modern C++ Design_ first, if your present interest is mainly in policy-based design and you prefer to start with applications rather than fundamentals. You may also want to consider the new _C++ Template Metaprogramming_ if your present interest is metaprogramming. But if you are looking for a solid, general grounding in everything templates can do and have been used to do, _C++ Templates: the Complete Guide_ is exactly what you are looking for.
Comment | 
Was this review helpful to you?
60 of 67 people found the following review helpful
5.0 out of 5 stars You'll laugh, you'll cry, you'll fall down... November 26, 2002
Format:Hardcover
Templates are increasingly becoming one of the most important
aspects of C++ programming, and are the central feature of the
most creative and innovative new C++ projects.

They are reasonably simple in concept, but in the effort to make
them behave "intuitively" for common cases, the actual rules that
describe what they do are hideously complicated. A guide for the
perplexed was sorely needed, and fortunately, has now appeared.

I'm no slouch at the subject myself, but I learned a few things
that I had no inkling of before, just on a casual reading of the
first few chapters. (Although the main thing I am learning once
again is just how insanely stupid C++ syntax is, and how awful
was the choice of angle brackets for template delimiters.) The
authors are experts on the subject, and the material is presented
clearly, with many examples, and above all correctly.

This is another must-have book for people who want to understand
all of C++. (Not that that's possible, except for perhaps half a
dozen people or so. I'll bet more people understand General
Relativity.)

Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Excelent
This is The book to learn templates.

If you don't know anything about C++ templates - don't worry. Read more
Published 3 months ago by Vinicius M. Braganca
5.0 out of 5 stars Good Book for learning templates
This book seems to have everything you wanna know about templates from techniques to why you should or shouldn't do certain things.
Published 4 months ago by codeNtheory
5.0 out of 5 stars Must have book for any C++ programmer
Every page of this book is worth reading many times. Very good examples and very well written especially on a topic like templates!
Published 5 months ago by Anand Arumugam
5.0 out of 5 stars Excellent book for a deep understanding of templates
The templates are one of the most powerful feature of C++. However, this is a complex technique that is often misused or misunderstood. Read more
Published 16 months ago by Baptiste Wicht
4.0 out of 5 stars Not only complete but definitive
"C++ Templates: The Complete Guide," by Vandevoorde and Josuttis, is rightly known as the definitive work on C++ templates. Read more
Published 24 months ago by Robert H. Stine Jr.
5.0 out of 5 stars very good book for template
This is a very good book for template. The book almost teaches you everything about template
Published on October 15, 2009 by Jing Jiang
5.0 out of 5 stars exelent book !
This is book that covers areas of c++ , which are usualy not covered in common c++ books. Templates are fastest growing part of c++ language , which leads developing new libraries... Read more
Published on March 29, 2009 by Miodrag Opacic
4.0 out of 5 stars Cater to the library builder niche
I think this is a high quality book. However, I do not see much use of it to the day-to-day application programmers. This book would be most useful to the library builders. Read more
Published on February 21, 2009 by Yuanchyuan Sheu
5.0 out of 5 stars A gentle introduction --
-- to some of C++'s most brutal features. This certainly isn't a first C++ book for anyone; it assumes fluency in C++ and a working competence in the basics of templates and... Read more
Published on January 7, 2009 by wiredweird
5.0 out of 5 stars If you were snobish about programming, you will have great respect for...
He is my favorite author when it comes in coding. Very systematic and structured. C++ templates is not yet a mature domain and it is not that easy to program. Read more
Published on October 2, 2008 by Nikolaos Vasiloglou
Search Customer Reviews
Only search this product's reviews


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 





Look for Similar Items by Category