HomeCoursesC++ Concepts: Improve Type Safety with C++ 20
AI-powered learning
Save

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

68 Lessons6 Quizzes2 Challenges

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.
Author NameC++ Concepts: Improve TypeSafety with C++ 20
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.

Learn more about Sandor

Trusted by 2.9 million developers working at companies

These are high-quality courses. Trust me the price is worth it for the content quality. Educative 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

A

Anthony Walker

@_webarchitect_

Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!

E

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.

S

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

S

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.

V

Vinay Krishnaiah

Software Developer

Built for 10x Developers

No Passive Learning
Learn by building with project-based lessons and in-browser code editor
Learn by Doing
Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go
Learn by Doing
Future-proof Your Career
Get hands-on with in-demand skills
Learn by Doing
AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"
Learn by Doing
Learn by Doing
MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies
Learn by Doing

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