A lambda expression [captures](parameters) { body } creates an unnamed function object, an object of a class generated by the compiler whose operator() runs the body. Its captures list the local variables of the enclosing function the body uses: [x] stores a copy of x in the object, [&x] a reference to it, [=] and [&] capture every variable the body uses, by copy or by reference.
Computer Science · शब्दावली
Lambda expression, capture क्या है?
अन्य नाम: lambda expression · capture (lambda)