HomeCoursesC++ Concepts: Improve Type Safety with C++ 20

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.
Join 2.7 million developers at
Overview
Content
Reviews
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

Templates

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.

8.

Summary

1 Lessons

Learn how to use C++ concepts to enhance type safety and simplify templates.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.

Course Author:

Developed by MAANG Engineers
Every Educative lesson is designed by our in-house team of ex-MAANG software engineers and PhD computer science educators, and developed in consultation with developers and data scientists working at Meta, Google, and more. Our mission is to get you hands-on with the necessary skills to stay ahead in a constantly changing industry. No video, no fluff. Just interactive, project-based learning with personalized feedback that adapts to your goals and experience.

Trusted by 2.7 million developers working at companies

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

AI Prompt

Build prompt engineering skills. Practice implementing AI-informed solutions.

Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

Explain with AI

Select any text within any Educative course, and get an instant explanation — without ever leaving your browser.

AI Code Mentor

AI Code Mentor helps you quickly identify errors in your code, learn from your mistakes, and nudge you in the right direction — just like a 1:1 tutor!

Free Resources

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath