A lambda function can be inlined in the source code. They are useful to pass these procedures as parameters to other modules. However, this can also be achieved through function pointers. Is there any set of good practices or rules of thumb regarding When should I choose lambdas over function pointers in C++11?
Aucun commentaire:
Enregistrer un commentaire