Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use partition_point instead of binary_search_by
Using `partition_point` ensures we always find the first entry. With binary search it is "random" (deterministic but implementation specific) which index is retruned if there are multiple equal elements. `partition_point` was added to the standard library to cover extactly the usecase here.
- Loading branch information