@tadm123 (1) You could also create a class with overloaded
operator()
, with myWord
as a member variable. That's what a lambda expands to. (2) No, because std::find_if
calls the lambda with a single argument. Some functions, in addition to a function parameter, accept additional parameters to pass to that function, but std::find_if
doesn't do that.