What is the practical application of for inheriting from lambdas in C++?