Browse Source

back to selection sort, no partition

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

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

@ -36,9 +36,9 @@ namespace gp {
return first;
}
/**
template<typename it_t, typename pred>
it_t partition(it_t first, it_t last, pred predicate = pred{}) {
return gp::hoare_partition(first, last, predicate);
}
}**/
}

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

@ -70,6 +70,6 @@ namespace gp {
template<typename it_t, typename pred>
void sort(it_t first, it_t last, pred predicate = pred{}) {
return gp::__details::bubble_sort(first, last, predicate);
return gp::__details::selection_sort(first, last, predicate);
}
}

Loading…
Cancel
Save