wow i am stunned i didn^t know you could do that in c++ ... !

Code:
doublevector.erase(
		std::remove_if(
			doublevector.begin(),
			doublevector.end(),
			std::bind2nd(IsApprox(), 5.67)),
		doublevector.end());
so if erase() didn't find anything to erase how do i check that ?

let's say i have

Code:
while (doublevector.erase(remove(doublevector.begin(), doublevector.end(),9)) != ??? );
with what do i replace the ???

thanks a ton guys.. this has been really helpful so far