Module librualg::binary_search[][src]

Expand description

Binary search algorithm.

Functions

lower_bound

Binary search algorithm. Returns the leftmost position of the item to find. It is necessary that the container is pre-sorted

upper_bound

Binary search algorithm. Returns the rightmost position of the item to find. It is necessary that the container is pre-sorted