Summary
This episode explores the unusual concept of using lambdas for everything in C++, presented as a fun thought experiment rather than a best practice. Jason demonstrates creating a flat map entirely as a lambda with a generalized capture of a vector, showing how to make it support operations like indexing and assignment. He further pushes the concept by implementing variadic parameters with fold expressions and even creating new types within lambda captures, illustrating the surprising flexibility of C++ lambdas.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[optional.monadic]90% match -
[expected.monadic]85% match -
[pairs]40% match