J'ai un ensemble et je veux trouver le plus grand nombre pas plus grand que x dedans. (Quelque chose comme lower_bound (x)) comment dois-je le faire? Y a-t-il des fonctions prédéfinies?lower_bound dans l'ensemble (C++)
set<int> myset;
myset.insert(blahblahblah);
int y;
//I want y to be greatest number in myset not greater than x
Vous ne voulez pas utiliser std :: set? – bjskishore123
Je suis juste en utilisant std :: set – user12345