2 ms·Well, that's what C++ lambdas do. Though C++ has smart pointers to help with lifetime issues.by bonzini 8y agoWell, that's what C++ lambdas do. Though C++ has smart pointers to help with lifetime issues.