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 {
194
194
195
195
// Delete the overlapping intervals. Split up intervals that only partially
196
196
// 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) {
201
198
auto It = Intervals.find (OlapStart);
202
199
IndexT CurrStart = It.start ();
203
200
IndexT CurrStop = It.stop ();
@@ -420,10 +417,7 @@ template <typename IndexT> class CoalescingBitVector {
420
417
const SmallVectorImpl<IntervalT> &Overlaps,
421
418
SmallVectorImpl<IntervalT> &NonOverlappingParts) {
422
419
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) {
427
421
// [Start;Stop] and [OlapStart;OlapStop] overlap iff OlapStart <= Stop
428
422
// and Start <= OlapStop.
429
423
bool DoesOverlap = OlapStart <= Stop && Start <= OlapStop;
You can’t perform that action at this time.
0 commit comments