samedi 16 mai 2015

What is the best way to find the position of the last occurrence for a specific item?

Something like this but inverse:

int pos = find(v.begin(), v.end(), item) - v.begin();

Aucun commentaire:

Enregistrer un commentaire