File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -194,10 +194,7 @@ template <typename IndexT> class CoalescingBitVector {
194194
195195 // Delete the overlapping intervals. Split up intervals that only partially
196196 // intersect an overlap.
197- for (IntervalT Overlap : Overlaps) {
198- IndexT OlapStart, OlapStop;
199- std::tie (OlapStart, OlapStop) = Overlap;
200-
197+ for (auto [OlapStart, OlapStop] : Overlaps) {
201198 auto It = Intervals.find (OlapStart);
202199 IndexT CurrStart = It.start ();
203200 IndexT CurrStop = It.stop ();
@@ -420,10 +417,7 @@ template <typename IndexT> class CoalescingBitVector {
420417 const SmallVectorImpl<IntervalT> &Overlaps,
421418 SmallVectorImpl<IntervalT> &NonOverlappingParts) {
422419 IndexT NextUncoveredBit = Start;
423- for (IntervalT Overlap : Overlaps) {
424- IndexT OlapStart, OlapStop;
425- std::tie (OlapStart, OlapStop) = Overlap;
426-
420+ for (auto [OlapStart, OlapStop] : Overlaps) {
427421 // [Start;Stop] and [OlapStart;OlapStop] overlap iff OlapStart <= Stop
428422 // and Start <= OlapStop.
429423 bool DoesOverlap = OlapStart <= Stop && Start <= OlapStop;
You can’t perform that action at this time.
0 commit comments