A
Allerdyce.John
I am reading a STL example:
bool badValue(int x); // return whether x is 'bad'.
vector<int> c;
c.erase( remove_if(c.begin(), c.end(), badValue), c.end());
My question is the above code, does it remove ONLY THE FIRST item where
badValue return false or
ALL ITEMs where badValue return false.
Thank you.
bool badValue(int x); // return whether x is 'bad'.
vector<int> c;
c.erase( remove_if(c.begin(), c.end(), badValue), c.end());
My question is the above code, does it remove ONLY THE FIRST item where
badValue return false or
ALL ITEMs where badValue return false.
Thank you.