What does a lambda capture clause written as [&] mean?
- A Capture all used variables by reference
- B Capture all used variables by value
- C Capture nothing
- D Capture only this
Answer
Capture all used variables by reference
Capturing by reference is dangerous when the lambda outlives the enclosing scope. Capturing by value with [=] copies instead.





