BinarySearch

STL: Binary Searched based functions
lower_bound
upper_bound

When to use

monotonic function
only increasing or decreasing