Possible Duplicate:
Difference between erase and remove
suppose i have a container.... what does the following mean.
c.erase(remove(c.begin(),c.end(),99),c.end());
aren't erase and remove the same? What is the specific function of erase and remove in the above example?