Why would one write a C++ lambda with a name so it can be called from somewhere? : <p>Why would one write a C++ lambda with a name so it can be called from somewhere? Would that not defeat the very purpose of a lambda? Is it better to write a function instead there? If not, why? Would a function instead have any disadvantages?</p>
