Browse Source

Forgot to comment whatever depended on partition tehe

master
Ludovic 'Archivist' Lagouardette 2 years ago
parent
commit
fdaa5e0f55
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/gp/algorithms/sort.hpp

+ 2
- 2
include/gp/algorithms/sort.hpp View File

@ -29,7 +29,7 @@ namespace gp {
}
return false;
};
/*
template<typename it_t, typename pred>
void quick_sort(it_t first, it_t last, pred predicate = pred{}) {
using __details::sort2;
@ -45,7 +45,7 @@ namespace gp {
gp::__details::quick_sort(first, pivot, predicate);
gp::__details::quick_sort(pivot, last, predicate);
}
*/
template<typename it_t, typename pred>
void bubble_sort(it_t first, it_t last, pred predicate = pred{}) {
if(last - first <= 2) {

Loading…
Cancel
Save