upper_bound

Revision en2, by hellomoto, 2018-08-25 07:44:03

How internally upper_bound for sorted vector(in ascending order) works in c++. Let say 'A' is a sorted vector.Then how upper_bound(A.begin(),A.end(),x) will directly give iterator to first element greater than x. Thanks in advance.

Tags c++, c++ 14

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English hellomoto 2018-08-25 07:44:03 172
en1 English hellomoto 2018-08-25 07:33:21 71 Initial revision (published)