I wonder where should we use lambda expression over functor in C++. To me, these two techniques are basically the same, even functor is more elegant and cleaner tha
As you pointed out, it works best when you need a one-off and the coding overhead of writing it out as a function isn't worth it.