list::remove_if(???)
HI ,
I have create the following code, would you please
give me some suggestions on how to write the parameter
of remove_if(), and the condition I want to use is the
element's flag is false?
----------------------------------------------
class PclElem
{
bool flag;
...
}
typedef list<PclElem*> PclElemList;
PclElemList *pcPclElemList = new PclElemList;
// add element to the list and set the flag for each element
...
// remove the element that the flag is false
pcPclElemList->remove_if(????).
----------------------------------------------
With many thanks!
Bst Rgd!