wow i am stunned i didn^t know you could do that in c++ ... !
so if erase() didn't find anything to erase how do i check that ?Code:doublevector.erase( std::remove_if( doublevector.begin(), doublevector.end(), std::bind2nd(IsApprox(), 5.67)), doublevector.end());
let's say i have
with what do i replace the ???Code:while (doublevector.erase(remove(doublevector.begin(), doublevector.end(),9)) != ??? );
thanks a ton guys.. this has been really helpful so far