how did we come to know that lower_bounds uses which comparison within its comparator. And how can we say if we use a<=b we will get 100 for 168 and not 50 or anything less than 100, why 100 is being returned
Why a<= b in comparator?
@snatchit using comparator a<=b in lowerbound makes it behave as upperbound nothing else. so of no use just use upper bound instead
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.