Intermediate
3h 20min
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.
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.
This course will walk you through the newest version of C++ 20, C++ Concepts.
You will go through one of the most significant n...Show More
WHAT YOU'LL LEARN
Learn to use concepts to create more powerful programs
Learn to write your own C++ Concepts
Learn to use C++ Concepts in real life
Learn to use concepts to create more powerful programs
Show more
TAKEAWAY SKILLS
Content
1.
Introduction
2 Lessons
Get familiar with C++20 concepts, enhancing type safety and improving template usability.
2.
The Concept Behind C++ Concepts
5 Lessons
Discover the logic behind C++20 concepts, enhancing template safety, clarity, and performance.
3.
Four Ways to use Concepts in Functions
13 Lessons
Explore using C++ concepts in functions for enhanced type safety and template constraints.
4.
C++ Concepts with Classes
10 Lessons
Grasp the fundamentals of applying concepts in C++ classes to enhance type safety.
5.
Concepts Shipped with the C++ Standard Library
8 Lessons
Explore C++20 standard concepts in `<concepts>`, `<iterator>`, and `<ranges>`.
6.
How to Write Your Own C++ Concepts
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
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.
Course Author:
Developed by MAANG Engineers
Trusted by 2.8 million developers working at companies
"These are high-quality courses. Trust me. I own around 10 and the price is worth it for the content quality. EducativeInc came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
Evan Dunbar
ML Engineer
"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."
Software Developer
Carlos Matias La Borde
"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"
Souvik Kundu
Front-end Developer
"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources