AI-powered learning
Save this course
C++ Template Metaprogramming
Gain insights into C++ template metaprogramming. Learn template fundamentals, variadic templates, advanced concepts, and modern practices. Explore patterns, idioms, and practical applications to write efficient code.
4.5
116 Lessons
20h
Join 2.9 million developers at
Join 2.9 million developers at
LEARNING OBJECTIVES
- In-depth understanding of C++ templates and their role in code abstraction
- Hands-on experience in utilizing variadic templates and type traits for complex tasks
- Familiarity with modern C++ features like concepts and constraints
- The ability to apply patterns and idioms for efficient C++ template programming
Learning Roadmap
1.
Introduction to the Course
Introduction to the Course
Get familiar with C++ template metaprogramming, from core concepts to advanced features.
2.
Template Basics
Template Basics
Discover the logic behind C++ templates, their usage, history, benefits, and challenges.
3.
Template Fundamentals
Template Fundamentals
16 Lessons
16 Lessons
Examine C++ template basics including functions, classes, specializations, and lambda templates.
4.
Variadic Templates
Variadic Templates
13 Lessons
13 Lessons
Grasp the fundamentals of variadic templates in C++, enhancing template flexibility and functionality.
5.
Advanced Template Concepts
Advanced Template Concepts
13 Lessons
13 Lessons
Deepen your knowledge of advanced C++ template concepts, recursion, argument deduction, and type utilities.
6.
Type Traits and Conditional Compilation
Type Traits and Conditional Compilation
12 Lessons
12 Lessons
Implement type traits to inspect and transform types at compile-time, enhancing code flexibility.
7.
Concepts and Constraints
Concepts and Constraints
16 Lessons
16 Lessons
Learn how to improve code readability and safety in C++ templates with concepts and constraints.
8.
Patterns and Idioms
Patterns and Idioms
12 Lessons
12 Lessons
Sharpen your skills in C++ metaprogramming with patterns like CRTP, mixins, and type erasure.
9.
Ranges and Algorithms
Ranges and Algorithms
8 Lessons
8 Lessons
Unpack the core of C++ ranges and algorithms, custom containers, zipping, and tuplezip creation.
10.
The Ranges Library
The Ranges Library
10 Lessons
10 Lessons
Examine the C++20 ranges library, focusing on views, constrained algorithms, and custom adaptors.
12.
Course Appendix
Course Appendix
2 Lessons
2 Lessons
Take a closer look at running code locally with supported compilers and further readings.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Complete more lessons to unlock your certificate
Developed by MAANG Engineers
ABOUT THIS COURSE
Templates have revolutionized the world of C++ programming. This course covers templates extensively, revealing their underlying mechanics, uses, and advancements. Whether you are a beginner or an advanced C++ developer, the importance of mastering templates and understanding their diverse applications cannot be understated.
The course introduces modules on templates, setting the stage for more advanced topics. You'll learn template fundamentals, variadic templates, and advanced template concepts and explore patterns and idioms. You’ll also further explore ranges, algorithms and the ranges library, bringing you up to speed with modern C++ practices.
By the end of this comprehensive course, you'll have a thorough understanding of C++ templates, enabling you to write more efficient and versatile codes. More than just theoretical knowledge, the course ensures practical application through quizzes and challenges. Enhance your C++ skills, positioning yourself for growth in the world of software development.
ABOUT THE AUTHOR
Packt
A tech learning platform that provides online courses, eBooks, videos, and other resources to help individuals and organizations stay ahead of emerging and popular technologies.
Trusted by 2.9 million developers working at companies
A
Anthony Walker
@_webarchitect_
E
Evan Dunbar
ML Engineer
S
Software Developer
Carlos Matias La Borde
S
Souvik Kundu
Front-end Developer
V
Vinay Krishnaiah
Software Developer
Built for 10x Developers
No Passive Learning
Learn by building with project-based lessons and in-browser code editor


Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go


Future-proof Your Career
Get hands-on with in-demand skills


AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"




MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies


Free Resources