From Jason Turner
Watch on YouTube

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.

Resources

Tags