CPP Lambda Capture

Introduced in CPP11, CPP Lambda Capture defines how lambdas access external variables. It supports capturing by value (`[=]`), by reference (`[&]`), or explicitly listing variables to capture (`[x, y]`).

CPP Lambda Capture is widely used in callback functions, event-driven systems, and functional pipelines. Its ability to capture local scope variables simplifies asynchronous programming and algorithm customization.

https://en.cppreference.com/w/cpp/language/lambda