[Discussion] C++ Lambdas v.s. Regular Functions

Are lambdas (better/faster) than functions?

2 Likes

No, the compiler is usually smart enough to compile any performance differences away. Pick the right tool for the problem without worrying about speed. Would tend towards using lambdas for simple functions.