I have a foo
which is a std::vector
. It represents the \"edge\" values for a set of ranges.
For example, if foo
is
bind
version would be:
bind(std::greater(), placeholders::_1, bar)
but I think, it is more encouraged to use lambdas, as in:
[bar](const int a){return bar < a;}
It is also encouraged to use overloaded functions begin/end
instead of method calls. so it would be like:
find_if(begin(foo), end(foo), [bar](const int a){return bar < a;})