例如,我有一堂课
class A
{
public:
int Value() const;
};
如何A::Value()在函数中用作比较std::lower_bound?
std::vector<A> v;
std::lower_bound<v.begin(), v.end(), ???>(v, 1);
以及如何在v给定的Value.
std::find_if<???, ???>(v.begin(), v.end(), ???); // or use other function