Concepts in 5
summary
Five minute lightning intro to C++ Concepts that shows real syntax and practical limits rather than promises. Demonstrates the requires-requires syntax for expression constraints, the -> return-type placeholder with auto to check result types, and points to GCC builds with -fconcepts for experimentation. Notes that named concepts and abbreviated function template syntax work, that trying to write a concept that accepts another constrained callable is currently impossible, and that Concepts miss C++17 and need more design work.
AI-written summary · about
chapters (8)
- 0:00Intro
- 0:10Concepts are fun
- 0:21Template constraints
- 0:37requires
- 0:57return type
- 1:29require
- 2:10template
- 2:38bonus slide
related talks
01h 11mConcepts in 60: Everything you need to know and nothing you don't
01h 28mC++ Concepts "Lite" in Practice
06mConstraints not Satisfied
01h 27mC++20 Templates - the Next Level: Concepts and More
01h 00mConcepts in C++20: Revolution or Evolution
01h 07mC++20 Concepts: A Day in the Life
58mConcept Based Testing
01h 35mC++20 – My Favourite Code Examples
