If you pass a lambda function by copy in c++ what actually gets copied?
Is it just a pointer to the lambda?
Or does the whole capture list get copied as well?
Lambda functions are usually realized as compiler generated functor classes.
Or does the whole capture list get copied as well?
The captures go to the class internal data members, and those will be copied.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With