Afficher un message
Vieux 21/02/2008, 17h03   #5
thomas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: vector.erase(iterator iter) will change "iter" or not?


> (And the higher-level answer to his question is that he should probably
> be using std::remove anyway:
>
> s.erase(remove(s.begin(), s.end(), 3), s.end());
>


What's this?
will "s.erase()" get all the elements after "3" removed?
  Réponse avec citation
 
Page generated in 0,04134 seconds with 9 queries