From c75e7afe6894579c1deea5f51e903ee97fddc94a Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Wed, 17 Mar 2021 14:25:01 +0000 Subject: [PATCH] selection_sort --- include/etl/algorithm.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/etl/algorithm.h b/include/etl/algorithm.h index 61a81556..f61fe6f0 100644 --- a/include/etl/algorithm.h +++ b/include/etl/algorithm.h @@ -3350,22 +3350,6 @@ namespace etl etl::sort_heap(first, last, compare); } - //*************************************************************************** - /// Sorts the elements using heap sort. - /// Uses user defined comparison. - ///\ingroup algorithm - //*************************************************************************** - template - void heap_sort(TIterator first, TIterator last, TCompare compare) - { - if (!etl::is_heap(first, last, compare)) - { - etl::make_heap(first, last, compare); - } - - etl::sort_heap(first, last, compare); - } - //*************************************************************************** /// Sorts the elements using heap sort. ///\ingroup algorithm