std::vector<int> vec;
std::find_if(vec.begin(), vec.end(), X);
where X = function or lambda expression
The above is what we have today in C++. Most of the times, in such functions, we always go through the entire container. Why don't these function support -
std::find_if(vec, X) where X = function or lambda expression
I do not see this in C++17 unless I did not search properly. Does anyone if anything like this is in the works ... maybe C++20 ?