vendredi 1 juillet 2016

LowerBound in multiset stl

I was trying to find how many element are less than a certain X in a multiset by using:

mset.lower_bound(X) - mset.begin()

But it didn't work. Any workarounds?

Aucun commentaire:

Enregistrer un commentaire