Having toyed around a bit with C++0x Lambda Expression in G++, I was wondering as to how well the performance will be in general/specific situations compared to alternative ways without using lambda functions.
Does anybody know a more or less comprehensive discussion of lambda expression performance or situations in which one should avoid them despite more comfort while developing?
If you consider the old-school way of defining a struct with
operator ()as an alternative way then there isn’t gonna be any difference because lambdas are pretty much equivalent to that. Just syntactically more convenient. Let’s wait for a more complete answer…