Skip to content

Glossary: Software Design Patterns in C++

lambda

Also written: lambdas, lambda expression

A small unnamed function written inline, which can capture variables like `[pct]`. Lambdas are usually how a strategy or listener is written in C++.

Where the book teaches it

Related terms

std::functioncallable