Advertisement
VladSmirN

бин поиск stl

Oct 25th, 2020
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. auto cmp = []( long long b ,auto it)->bool {
  2.     if(  it.b > b)
  3.     return true;
  4.  
  5.     return false;
  6. };
  7.  auto upper = std::upper_bound(l.begin(), l.end(), l[i+1].e   ,  cmp );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement