From 0c78d3895840e64552576297e480575121ceea72 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 9 Apr 2022 22:38:35 +0200 Subject: [PATCH] #529 Optimised min_element, max_element and min_max_element implementations --- include/etl/algorithm.h | 3 +++ support/Release notes.txt | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/include/etl/algorithm.h b/include/etl/algorithm.h index 9cc55941..4fb44337 100644 --- a/include/etl/algorithm.h +++ b/include/etl/algorithm.h @@ -1215,6 +1215,7 @@ namespace etl TCompare compare) { TIterator minimum = begin; + ++begin; while (begin != end) { @@ -1258,6 +1259,7 @@ namespace etl TCompare compare) { TIterator maximum = begin; + ++begin; while (begin != end) { @@ -1302,6 +1304,7 @@ namespace etl { TIterator minimum = begin; TIterator maximum = begin; + ++begin; while (begin != end) { diff --git a/support/Release notes.txt b/support/Release notes.txt index b7b535f1..938a92c4 100644 --- a/support/Release notes.txt +++ b/support/Release notes.txt @@ -1,4 +1,9 @@ =============================================================================== +20.27.2 +Added scripts to automatically update version information. +#530 Fixed: etl::nth_type not implemented correctly. +#521 CMake: Add package version file for installation. +=============================================================================== 20.27.1 Fixed undefined macros when compiler type is defined by the user.