Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 946

Comment by HolyBlackCat on How to find an element in a vector of class objects, based on one of the class members, and delete it

$
0
0
@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.

Viewing all articles
Browse latest Browse all 946

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>