diff --git a/src/contractor/contractor.cpp b/src/contractor/contractor.cpp index 04ca61b45..c4ea3641a 100644 --- a/src/contractor/contractor.cpp +++ b/src/contractor/contractor.cpp @@ -263,7 +263,9 @@ struct TurnPenaltySource final using TurnPenaltySourceFlatMap = std::vector; using SegmentSpeedSourceFlatMap = std::vector; -// Binary Search over a flattened key,val Segment storage +// Find is a binary Search over a flattened key,val Segment storage +// It takes the flat map and a Segment/PenaltySource object that has an overloaded +// `==` operator, to make the std::lower_bound call work generically template auto find(const FlatMap &map, const SegmentKey &key) {