54 Commits

Author SHA1 Message Date
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
John Wellbelove
97abf6ccc0 Added min_element & max_element 2020-01-12 16:25:37 +00:00
John Wellbelove
83347ccfdd Work in progress 2020-01-09 11:15:50 +00:00
John Wellbelove
94c5eed5a4 Work in progress 2020-01-04 11:49:22 +00:00
John Wellbelove
fc50557003 Work in progress 2020-01-04 11:20:29 +00:00
John Wellbelove
5803d928a1 Merge remote-tracking branch 'origin/feature/no_stl_unit_tests' into development
# Conflicts:
#	include/etl/stl/alternate/algorithm.h
#	include/etl/stl/alternate/iterator.h
#	include/etl/version.h
#	library.json
#	library.properties
#	support/Release notes.txt
#	test/test_no_stl_algorithm.cpp
#	test/test_no_stl_iterator.cpp
#	test/vs2017/etl.vcxproj
2019-12-01 18:21:10 +00:00
John Wellbelove
fe36361973 Finalised sort functions.
Added 'no STL' support.
2019-11-15 10:14:48 +00:00
John Wellbelove
e8e4fa3f0d Updated unit test project to support C++17 2019-09-28 11:25:25 +01:00
John Wellbelove
1326691a65 Added variadic min and max functions.
etl::multimin
etl::multimin_compare
etl::multimin_iter
etl::multimin_iter_compare
etl::multimax
etl::multimax_compare
etl::multimax_iter
etl::multimax_iter_compare
2019-05-04 22:14:06 +01:00
John Wellbelove
bd008350a2 Merge remote-tracking branch 'origin/feature/changed_include_paths' into development
# Conflicts:
#	include/etl/version.h
2018-07-28 21:55:27 +01:00
John Wellbelove
3fdf3e6b1a Merge remote-tracking branch 'origin/feature/no_stl' into development
# Conflicts:
#	include/etl/private/ivectorpointer.h
#	test/test_vector_pointer.cpp
2018-07-22 20:51:03 +01:00
John Wellbelove
a742749849 Merge branch 'development' 2017-11-01 09:33:17 +00:00
John Wellbelove
667b9e2b15 Added binary_find 2017-07-30 11:25:28 +01:00
John Wellbelove
f29121f252 Additional algorithms. 2017-06-29 17:22:02 +01:00
John Wellbelove
14074ade05 Additional algorithms. 2017-06-28 19:13:12 +01:00
John Wellbelove
fe640ce8ef Merge remote-tracking branch 'origin/development'
# Conflicts:
#	src/cyclic_hash.h
#	test/codeblocks/ETL.cbp
2017-05-08 22:43:34 +01:00
John Wellbelove
26b7326d72 Updated Code::Blocks project.
Changed test project include paths to use unittest++ as sub-module.
2017-05-08 20:48:22 +01:00
John Wellbelove
05e3f3acd6 Merge remote-tracking branch 'origin/development'
# Conflicts:
#	test/test_algorithm.cpp
2017-03-04 20:13:25 +00:00
John Wellbelove
6561840019 Completed additional ETL extension algorithms 2017-03-04 19:30:36 +00:00
John Wellbelove
501f4d7efd Merge remote-tracking branch 'origin/development' 2017-02-26 09:20:33 +00:00
John Wellbelove
7238f11ea4 Added more transform algorithms 2017-02-23 23:11:21 +00:00
jwellbelove
54714f1eda Added for_each_if & transform_if
Corrected operation of transform_if
2017-02-23 08:37:56 +00:00
jwellbelove
536ad7f384 Corrected operation of transform_if 2017-02-23 08:21:47 +00:00
John Wellbelove
d72737d9b4 Added for_each_if & transform_if 2017-02-22 20:25:14 +00:00
John Wellbelove
bdd1f7e837 Additional safe 4 parameter versions of copy, copy_if & copy_n 2017-02-16 06:53:35 +00:00
John Wellbelove
d0a04614ef Added to partition_point test 2016-05-03 19:21:59 +01:00