3 ms·
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 lifet
by flqn 5y 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.