|
|
|
|
|
by flqn
1618 days ago
|
|
A c++ lambda is a struct with a call operator. The destructors of captured objects are appropriately called when the lambda's lifetime ends. Managing the lifetime of referenced objects is something you always have to worry about in c++ anyway, lambdas don't change that. |
|