J
John Black
Hi,
In using find_if() you need to name a comparision function which
normally is a static function, but sometimes it is really inconvinient
for this, let's take this example,
class MyClass{
vector<int> myVec;
void func();
};
When MyClass::func() needs to call find_if against myVec, I have to
decalre a static function for it, but myVec is not static, it can not be
referenced in static function, then I have to consider convert myVec to
static...
Looks like I miss something in between, there should be some way to do
this.
Thanks.
In using find_if() you need to name a comparision function which
normally is a static function, but sometimes it is really inconvinient
for this, let's take this example,
class MyClass{
vector<int> myVec;
void func();
};
When MyClass::func() needs to call find_if against myVec, I have to
decalre a static function for it, but myVec is not static, it can not be
referenced in static function, then I have to consider convert myVec to
static...
Looks like I miss something in between, there should be some way to do
this.
Thanks.