AI-powered learning
Save this course
C++ Concepts: Improve Type Safety with C++ 20
Gain insights into C++20 Concepts to enhance type safety. Delve into creating compiler-checked criteria for templates and improving error clarity for seamless generic code development.
4.8
68 Lessons
3h 20min
Join 2.9 million developers at
Join 2.9 million developers at
LEARNING OBJECTIVES
- Learn to use concepts to create more powerful programs
- Learn to write your own C++ Concepts
- Learn to use C++ Concepts in real life
Learning Roadmap
1.
Introduction
Introduction
Get familiar with C++20 concepts, enhancing type safety and improving template usability.
2.
The Concept Behind C++ Concepts
The Concept Behind C++ Concepts
Discover the logic behind C++20 concepts, enhancing template safety, clarity, and performance.
3.
Four Ways to use Concepts in Functions
Four Ways to use Concepts in Functions
13 Lessons
13 Lessons
Explore using C++ concepts in functions for enhanced type safety and template constraints.
4.
C++ Concepts with Classes
C++ Concepts with Classes
10 Lessons
10 Lessons
Grasp the fundamentals of applying concepts in C++ classes to enhance type safety.
5.
Concepts Shipped with the C++ Standard Library
Concepts Shipped with the C++ Standard Library
8 Lessons
8 Lessons
Explore C++20 standard concepts in `<concepts>`, `<iterator>`, and `<ranges>`.
6.
How to Write Your Own C++ Concepts
How to Write Your Own C++ Concepts
21 Lessons
21 Lessons
See how it works to create custom C++ concepts, validate constraints, and enforce type safety.
7.
How to Use C++ Concepts in Real Life
How to Use C++ Concepts in Real Life
8 Lessons
8 Lessons
Practice using C++ concepts to enhance type safety, utility functions, and implement multiple destructors.
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
This course will walk you through the newest version of C++ 20, C++ Concepts.
You will go through one of the most significant new features in C++20, which is Concepts. Concepts allow you to create compiler-checked criteria for template parameters, revolutionizing the way you think about and develop generic code. You can use them to provide both syntactic and semantic requirements. They also allow you to explicitly express your goal in the type system. If something goes wrong, you'll get a clear error message from the compiler.
While useful, Concepts can be difficult to apply and even confusing sometimes. This course provides you with the knowledge you need to overcome these obstacles and move on to more complex topics.
Let's get started.
ABOUT THE AUTHOR
Sandor Dargo
Principal engineer. Author. Speaker. Happy father.
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