Namespaces
Variants
Actions

Talk:cpp/algorithm/upper bound

From cppreference.com

The requirement for the function object is not consistent with that of lower_bound, and the description for lower_bound seems to be more flexible and correct.

Agreed - T need not be convertible to both types - e.g. http://coliru.stacked-crooked.com/a/9b6364e1e78bc888 Cdyson37 (talk) 01:34, 19 June 2017 (PDT)