I was looking at how the upper bound and lower bound algorithms operate in stl on these pages: lower bound, upper bound, and it's documented the same way on these pages: lower bound, upper bound, and it's documented the same way on these pages: lower bound, upper bound, and it'
upper bound, lower bound
Looking at the code from the links, they appear to perform the same thing to me, with the exception of the following lines
lower_bound (line 10):
if (*it<val) { ...READ MORE
Jul 5, 2022
in C++
by
Nicholas
• 7,760 points
•
1,108 views