C++ Templates: The Complete Guide (2nd Edition) – eBook


  • Authors: David Vandevoorde, Nicolai M. Josuttis, Douglas Gregor
  • File Size: 28 MB
  • Format: ePub (converted PDF available)
  • Length: 832 pages
  • Publisher: Addison-Wesley Professional; 2nd edition
  • Publication Date: September 14, 2017
  • Language: English
  • ISBN-10: 0321714121, 013477874X
  • ISBN-13: 9780321714121, 9780134778747


Templates are among the most powerful features of C++, but they remain underutilized and misunderstood, even as the C++ development and language and community have advanced. In C++ Templates, 2nd Edition, (ePub/PDF) three pioneering C++ experts show when, why, and how to use modern templates to build software that’s much cleaner, faster, more efficient, and easier to maintain.

Now C++ Templates: The Complete Guide 2nd edition is extensively updated for the C++14, C++11, and C++17 standards, this new and updated 2nd edition presents state-of-the-art techniques for a much wider spectrum of applications. The authors provide authoritative explanations of all new language features that either improve templates or interact with them, including variadic templates, class template argument deduction, generic lambdas, forwarding references, compile-time if, and user-defined literals. They also deeply delve into fundamental language concepts (like value categories) and fully cover all standard type traits.

The ebook starts with an insightful tutorial on basic concepts and relevant language features. The remainder of the ebook serves as a comprehensive reference, focusing first on the language details and then on advanced applications, coding techniques, and sophisticated idioms. Throughout, examples clearly illustrate various abstract concepts and demonstrate best practices for exploiting all that C++ templates can do.

  • Preview the upcoming concepts feature
  • Master today’s most effective techniques and idioms
  • Reuse source code without compromising performance or safety
  • Understand exactly how templates behave and avoid common pitfalls
  • Use templates to write more efficient, flexible, and maintainable software
  • Benefit from utilities for generic programming in the C++ Standard Library

NOTE: This ebook is in the original ePub format. A converted PDF is also available on request