B
BekTek
I have class that has member function that take two argument..
I'd like to use the member function to algorithm such as remove_if..
How can I bind that?
class Foo{
void f(){
int a = 10;
remove_if(list.begin(), list.end(), HERE);
}
bool someFunc(int a, int b){
return a==b;
}
list<int> list;
}
What I want is to remove all elems which is 10;
This is short example..
Do you know how to do it?
I'd like to use the member function to algorithm such as remove_if..
How can I bind that?
class Foo{
void f(){
int a = 10;
remove_if(list.begin(), list.end(), HERE);
}
bool someFunc(int a, int b){
return a==b;
}
list<int> list;
}
What I want is to remove all elems which is 10;
This is short example..
Do you know how to do it?