title: Lambda Expression vs Functor in C++
body: <p>I wonder where should we use <em>lambda</em> expression over functor in C++. To me, these two techniques are basically the same, even functor is more elegant and cleaner than <em>lambda</em>. For example, if I want to reuse my predicate, I have to copy the lambda part over and over. So when does lambda really come in to place?</p>