3 ms·Tho, in C++ I guess almost everybody would use a scoped variable with its desctructor using lambda.by jagger11 9y agoTho, in C++ I guess almost everybody would use a scoped variable with its desctructor using lambda.