newsfilter
← Interviews
Lex Fridman10 min

Bjarne Stroustrup: C++ Concepts - Constraints on Template Parameters

Bjarne Stroustrup

Lecture, Keynote

Designed by Gabby Dos Reis, Andrew Sutton, and the speaker while at Texas, C++ Concepts were standardized in C++20 to serve as compile-time predicates that verify structural type requirements without runtime overhead. Now implemented in Clang and GCC with Microsoft support expected soon, this feature resolves a two-decade-old challenge in generic programming by explicitly expressing interface constraints that were previously implicit in C templates. Concrete production applications demonstrate that the technology successfully balances the rigorous type checking of Alex Stepanov's original vision with the high performance and flexibility required by modern C++ development.