Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the fundamentals and advanced applications of C++20 concepts in this comprehensive conference talk from CppNow 2021. Delve into the evolution of concepts from meta-programming to their current implementation, and learn how to effectively use them in real-world projects. Discover techniques for utilizing standard library concepts, writing custom concepts, and designing libraries with concept-based approaches. Examine practical examples, including refactoring std::sleep_for and creating an interval concept, to gain insights into concept design alternatives. Analyze the impact of concepts on C++ designs, comparing them to existing design principles like Liskov substitution. Investigate how concepts influence design patterns, using serialization as a case study to explore tradeoffs in multi-paradigm design.
Syllabus
Introduction
Motivation
About me
Goals
Good vs Bad Concepts
Templates
History
Concept Definition
Types vs Concepts
Concept Code
Notable Concepts
Using Concepts
First Question
Basics
Limitations
Printable Concept
Valid Code
Error Message
Compile
Overload Resolution
PrintLine
Traditional Solution
New Concept
How will I use this
Print
Printable overload
Output stream
Concept error message
Static if const
Cons
Taught by
CppNow