Overview
Explore advanced C++ lambda techniques and idioms in this comprehensive CppCon 2022 conference talk by Timur Doumler. Delve into the evolution of lambdas from C++11 to C++23, covering topics such as generic lambdas, init captures, constexpr lambdas, and upcoming features. Learn about lesser-known lambda tricks, including inheritance, recursive calls, and immediately-invoked lambda expressions. Gain insights into practical applications, clean code practices, and the future of lambdas in C++ development.
Syllabus
Introduction
Lambda Expressions
Unary Trick
Captures
Local Variables
Immediately Invoked Functions
Never Again
Generic Lambda
Variable Template
Init Capture
Class Template Argument Deduction
C20 Lambda Changes
C23 Lambda Changes
C23 Deducing
Recursive Lambda
Tree Traversal
Taught by
CppCon