Skip to content

Commit 203d830

Browse files
committed
Defined tuple types in quickSort() return
1 parent 94c1055 commit 203d830

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

β€Žsrc/SortAlgorithms.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static tuple<SortableIterator, int> quickSortPartition( std::vector<Sortable>& p
125125
}
126126
}
127127
algoUtils::swap(parent, timeSleep, *lhs, *pivot);
128-
return tuple{lhs, numOfComparisons};
128+
return tuple<SortableIterator, int>{lhs, numOfComparisons};
129129
}
130130

131131
int algo::quickSort(std::vector<Sortable>& sortElements, int timeSleep) {
@@ -138,8 +138,6 @@ int algo::quickSort(std::vector<Sortable>& sortElements, int timeSleep) {
138138
// ────────────────────────────────────────────────────────────────────
139139
//
140140

141-
142-
143141
/**
144142
* @brief algoUtils::swap - Utility function for swapping elements and changing the colors on swap.
145143
*

0 commit comments

Comments
Β (0)