ParentFull threaddetrino·It should be noted that their version gives different results to std::upper_bound if your range contains duplicates.View on HN