vendredi 3 août 2018

how to find index/position of an element in set in c++?

I want to find index of an element in a set.
For example, if s={2,5,8,9,12}
index/position of 8 is 2, index/position of 12 is 4.

Aucun commentaire:

Enregistrer un commentaire