Quick A: No, only the ones you actually use.
From StackOverflow:
Does [=] imply that all local variables will be copied?
When I write a lambda with
[=]
, does it mean that all my local variables will be copied into members of the created struct or can I assume that only those will that are actually used in the lambda?
Add a Comment
Comments are closed.