From 5041266eccb0831d0a1a2b65f840a792bbc8dbe1 Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Wed, 20 Oct 2021 12:10:12 +0200 Subject: [PATCH] back to selection sort, no partition --- include/gp/algorithms/partition.hpp | 4 ++-- include/gp/algorithms/sort.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gp/algorithms/partition.hpp b/include/gp/algorithms/partition.hpp index 898caa8..5a38995 100644 --- a/include/gp/algorithms/partition.hpp +++ b/include/gp/algorithms/partition.hpp @@ -36,9 +36,9 @@ namespace gp { return first; } - + /** template it_t partition(it_t first, it_t last, pred predicate = pred{}) { return gp::hoare_partition(first, last, predicate); - } + }**/ } \ No newline at end of file diff --git a/include/gp/algorithms/sort.hpp b/include/gp/algorithms/sort.hpp index 0ee73d1..f9b122b 100644 --- a/include/gp/algorithms/sort.hpp +++ b/include/gp/algorithms/sort.hpp @@ -70,6 +70,6 @@ namespace gp { template 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); } } \ No newline at end of file