-
Book Overview & Buying
-
Table Of Contents
Modern C++ Templates In Depth
By :
Modern C++ Templates In Depth
By:
Overview of this book
This course starts with a clear introduction to C++ templates and their key role in generic programming. Early lessons cover function templates in depth, including template argument deduction, explicit instantiations, and overloading techniques. You’ll also learn how templates compile and how static members behave, providing essential knowledge for efficient template coding.
Next, the focus shifts to class templates with detailed examples and specializations to deepen your understanding. Topics include partial specializations, non-type parameters, and explicit specialization of member functions, preparing you for advanced template use cases. The course also covers important updates from C++11 through C++20, such as variadic templates, fold expressions, generic lambdas, and modern argument passing.
A practical project integrates these concepts, guiding you through designing, testing, and modernizing a templated data structure. By course completion, you will confidently apply both foundational and advanced template features to write reusable, maintainable, and modern C++ code.
Table of Contents (8 chapters)
Function Templates
Class Templates
Passing Arguments
Template Changes In C++11
Template Changes in C++14/17
Template Changes in C++20