Summary
This episode explores different approaches to storing lambdas in containers in C++. Jason demonstrates three methods: using std::function (with significant runtime overhead), using function pointers (limited to non-capturing lambdas), and using a factory function with decltype to create a consistent lambda type. He explains the challenges with each approach, noting that every lambda has a unique, compiler-generated type that complicates direct storage in containers.