fork download
  1. #include <iostream>
  2. #include <set>
  3. using namespace std;
  4.  
  5. int main() {
  6. set<int> s1 = {10, 20, 30};
  7.  
  8. auto it = s1.lower_bound(15); // 20
  9. auto it2 = s1.lower_bound(20); // 20
  10. }
  11.  
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
Standard output is empty