79 Commits

Author SHA1 Message Date
John Wellbelove
f37170d2bb
Merge branch 'development' into fix-algorithm-review 2026-03-10 16:55:57 +00:00
Roland Reichwein
19650c53d3 Add partial_sort_copy 2026-03-10 17:00:39 +01:00
Roland Reichwein
11303d8efb Add partial_sort 2026-03-10 17:00:39 +01:00
Roland Reichwein
679f5ccb24 Add inplace_merge 2026-03-10 17:00:39 +01:00
Roland Reichwein
e3e015c900 Add merge 2026-03-10 17:00:39 +01:00
Roland Reichwein
12773f1f43 Add unique_copy 2026-03-10 17:00:39 +01:00
Roland Reichwein
fa0dfd7631 Add unique 2026-03-10 16:43:10 +01:00
Roland Reichwein
b0bf06b9dd Add adjacent_find 2026-03-10 16:43:10 +01:00
Roland Reichwein
4925d00746 Added tests for is_heap and sort_heap 2026-03-10 16:43:10 +01:00
Roland Reichwein
3a5291463f Add tests for move_s 2026-03-10 16:43:10 +01:00
Roland Reichwein
1718b23cc4 Add tests for accumulate 2026-03-10 16:43:10 +01:00
Roland Reichwein
43da80433d Add tests for find_end 2026-03-10 16:43:10 +01:00
Roland Reichwein
fdc12dd8fe Add tests for binary_search 2026-03-10 16:43:10 +01:00
Roland Reichwein
f472fffb71 Add tests for swap_ranges 2026-03-10 16:43:10 +01:00
Roland Reichwein
19a1d7733b Support empty ranges in selection_sort 2026-03-10 16:43:10 +01:00
Roland Reichwein
2c56d2e031 Use predicate in calculation of is_permutation consistently
In case of predicate not equal_to, the calculation previously
returned wron results
2026-03-08 21:33:49 +01:00
Roland Reichwein
a8ebe338f8
Fix etl::rotate (#1327)
Per the C++ standard, std::rotate returns first + (last - middle):

* When first == middle, return last
* When middle == last, return first
2026-03-06 10:11:46 +00:00
John Wellbelove
16b7183eb8 Merge branch 'pull-request/#1245-Fix-discrepancy-with-STL-in-max_element-and-minmax_element' into development 2025-12-23 07:35:26 +00:00
mike919192
342e43e28b
Fix discrepency with STL in max element and minmax element (#1245) 2025-12-23 07:09:37 +00:00
John Wellbelove
d884719098 Fixed all 'extra semicolon' warnings 2025-12-16 09:15:26 +00:00
John Wellbelove
e60f68bad8 Removed asserts from copy_s and move_s algorithms 2025-07-27 10:38:20 +01:00
John Wellbelove
799280f615 Work in progress 2025-06-26 20:23:17 +01:00
Roland Reichwein
49acd2d2ab Various cleanup changes (#1049)
* Various Cleanup

Remove remove() by pointer because erase() can be used for that

Fix signed distance handling, with added check for order

Add missing file ID

Fix File IDs

Added test for algorithm.h

* Improve types
# Conflicts:
#	include/etl/file_error_numbers.h
2025-04-30 16:54:22 +01:00
John Wellbelove
5e689c0a66 Fix some sanitizer issues 2025-02-23 11:54:38 +00:00
jonasgampigbmw
b34e3a6f60
#1017 Fix empty range handling of min/max_element (#1018) 2025-01-21 17:08:38 +00:00
John Wellbelove
bbfce66abc Added template parameter clamp functions 2024-05-28 11:58:07 +01:00
John Wellbelove
55f508b315 Added etl::partition and etl::nth_element 2024-04-16 08:07:33 +01:00
John Wellbelove
a5560b2ce1 Added etl::partition 2024-04-09 13:46:33 +01:00
John Wellbelove
77513730e0 Fixed shadow warnings in all files
#823 Multiple variable shadowing warnings in private/bitset_new.h
2024-01-25 14:22:26 +00:00
John Wellbelove
480363a4e7 Added etl::generate algorithm 2023-12-18 10:52:40 +00:00
John Wellbelove
f8d5c31f66 Refactored swap 2023-10-28 11:33:25 +02:00
John Wellbelove
b609548f38 Added ETL_OR_STD17 macro for the namespace for size() 2023-04-23 18:58:30 +01:00
John Wellbelove
8eabe5fb26 Fix test array sizes
C++14 compiler compatibility

Updated test run scripts

Changed some ETL_ASSERT macros to ETL_ASSERT_OR_RETURN

Changed unit test macros for C++20 compaibility

Updated test run scripts

Updated CMake files to allow C++ standard selection

Replaced ETL_ASSERT_AND_RETURN with ETL_ASSERT_OR_RETURN

Updated C++14 & C++20 unit test compatibility

Changed native char8_t check

Added optional optimisation argument to bash script
2023-03-25 12:16:59 +00:00
John Wellbelove
baa47d1c33 Updated copyright notice 2022-06-10 21:45:37 +01:00
John Wellbelove
e6736404ed Final code after local CI tests 2022-01-08 18:51:35 +00:00
John Wellbelove
f3bf0dc7fe Disable etl::begin(), etl::end() and etl::size() for ETL_NO_STL 2021-10-20 13:34:44 +01:00
CanastraRF
7c0f169b66
literal with suffix (#416) 2021-08-23 11:01:18 +01:00
John Wellbelove
0d6c421fb1 Added etl::erase, etl::erase_if, etl::remove, etl::remove_if 2021-04-13 12:27:11 +01:00
John Wellbelove
bb9f27bd8d Merge branch 'master' into feature/add-mathematical-functors 2021-03-16 20:05:32 +00:00
John Wellbelove
36bd492ecf selection_sort 2021-03-16 20:05:05 +00:00
John Wellbelove
dbfa71944f Abstracted unit test framework header 2021-03-05 13:52:34 +00:00
John Wellbelove
0184725feb Added etl::multi_loop 2020-12-22 12:44:17 +00:00
John Wellbelove
1aac5fb046 Added etl::for_each 2020-12-22 12:43:54 +00:00
Ivo Ihlemann
010b16510f
add overload for etl::equal that compares lengths (#294)
* add overload for etl::equal that compares lengths

accoring to std::equal (https://en.cppreference.com/w/cpp/algorithm/equal)

* add test for equal overload that compares lengths
2020-10-29 09:02:44 +00:00
John Wellbelove
adf6243de6 Performance optimisations for etl::rotate, etl::move & etl::move_backward
when not using the STL, iterators are pointers and the objects are trivially copyable (currently POD types).
2020-09-24 23:19:33 +01:00
John Wellbelove
5c9f648cc5 Full string utilities for char 2020-07-15 12:22:46 +01:00
John Wellbelove
e323f2267f Changed http://www.etlcpp.com to https://www.etlcpp.com 2020-05-01 10:22:36 +01:00
John Wellbelove
582aa051c5 rvalue reference support for heap functions and etl::priority_queue 2020-03-18 19:51:41 +00:00
John Wellbelove
caba10699a Move etl::swap to utilities.h
Fixed many CLang warnings
2020-02-24 11:48:04 +01:00
John Wellbelove
8a99a2725c Merge remote-tracking branch 'origin/development'
# Conflicts:
#	include/etl/version.h
#	library.json
#	library.properties
#	support/Release notes.txt
2020-01-14 12:46:17 +00:00