Can lambda\'s be defined as class members?
For example, would it be possible to rewrite the code sample below using a lambda instead of a function object?
"if a lambda can be passed as a function argument then maybe also as a member variable"
The first is a yes, you can use template argument deduction or "auto" to do so. The second is probably no, since you need to know the type at declaration point and neither of the previous two tricks can be used for that.
One that may work, but for which I don't know whether it will, is using decltype.