Skip to content

Glossary: C++ Beyond the Basics

Lambda

Also written: lambdas, lambda expression

An unnamed function written inside an expression, such as `[](int c) { return c > 400; }`. You can store it in `auto`, pass it to algorithms or keep it in a `std::function`.

Where the book teaches it

Related terms

CaptureClosurestd::function