Skip to content

Glossary: C++ Beyond the Basics

Init capture

Also written: init captures

A lambda capture that creates a new variable inside the closure, such as `[n = 100]` or `[lines = std::move(lines)]`.

Where the book teaches it

Related terms

CaptureLambda