Concepts in C++20: Revolution or Evolution
summary
C++20 concepts let templates state precise, compiler-checked requirements to produce targeted diagnostics instead of long error dumps. The talk demonstrates using predefined concepts like integral and floating_point plus requires-expressions, shows a sequence/container example that narrows algorithm overloads, and explains how constraining a function makes it a template and offers concrete overload and specialization patterns that improve intent, readability, and error messages.
AI-written summary · about
chapters (9)
- 0:00Introduction to C++20 concepts
- 5:15History and evolution of concepts
- 10:38Concepts syntax and usage
- 18:19Taktik-shooter use case
- 24:25Concepts in class definitions
- 30:10Compiler messages and concept checks
- 35:39Real-world examples and benefits
- 40:37Evolution vs revolution in C++20
- 45:58Conclusion and Q&A
related talks
54mC++ Concepts for Developers
01h 27mC++20 Templates - the Next Level: Concepts and More
01h 21mWhat Has C++20 Ever Done For Templates?
01h 35mC++20 – My Favourite Code Examples
52mConcepts: The Future of Generic Programming
01h 39m“Concepts: The Future of Generic Programming (the future is here)”
59mMetaprogramming: From Templates to Concepts
04mConcepts in 5
