498 Commits

Author SHA1 Message Date
John Wellbelove
e337689ed0 Conditionally disable template deduction guide tests 2020-09-29 13:15:37 +01:00
John Wellbelove
509089c0e2 Added template deduction guides 2020-09-28 13:14:12 +01:00
John Wellbelove
04c479279e Refactored empty(), full(), available() member functions for etl::list and etl::forward_list 2020-09-27 12:47:20 +01:00
Bo Rydberg
0fee1fc0b6
Fix faulty assert in list<int,0>::available (#275)
Prevent zero sized `list<int, 0> x;` from always asserting.
2020-09-27 10:09:48 +01:00
Bo Rydberg
663c4311fc
etl::list<int, 0>::full() asserts (#274)
* Changed some functions to ETL_CONSTEXPR14

* Updated Code:Blocks project

* etl::list<int, 0>::full() asserts

The list::full method asserts for lists with maxsize zero.

Co-authored-by: John Wellbelove <github@wellbelove.co.uk>
2020-09-27 10:09:27 +01:00
Bo Rydberg
8ae3437aee
Add missing rend() const to list.h (#273)
The `etl::list` class has a missing overload of `rend() const` causing unwarranted compile errors.
2020-09-27 09:53:23 +01:00
John Wellbelove
a02b0f7012 etl::error_handler is not compiled unless error logging is enabled 2020-09-25 13:35:06 +01:00
John Wellbelove
3440c463fa etl::fsm now reports itself as a consumer of messages. 2020-09-25 13:34:28 +01:00
John Wellbelove
2b162f4e7f Fixed inifinite loop for default constructed etl::string_view to get_token() 2020-09-25 13:33:18 +01:00
John Wellbelove
96a4c82a58 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-25 08:32:30 +01: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
5544633c39 etl::array_view constructor from C array is no longer explicit 2020-09-22 17:54:46 +01:00
John Wellbelove
9f018d9a43 Removed explicit from C array constructor 2020-09-22 17:49:07 +01:00
John Wellbelove
2124596f8b Merge branch 'hotfix/segger-multiple-prevailing-defs-for-invocation' into development 2020-09-22 09:31:03 +01:00
John Wellbelove
c38d2db118 array_view-not-explicit 2020-09-22 09:30:06 +01:00
John Wellbelove
1643be47ba Experimental changes for issue #269 lto1: fatal error: multiple prevailing defs for 'invocation' 2020-09-21 15:03:17 +01:00
John Wellbelove
fa25f02bb1 Refactoring of 18.15.0.
Modified constructor syntax.
2020-09-19 10:31:44 +01:00
John Wellbelove
6f3995a4e7 Refactor string initialise with external buffer 2020-09-19 01:04:44 +01:00
John Wellbelove
5a5579df7a cstring.h code moved to to string.h 2020-09-18 09:26:02 +01:00
John Wellbelove
f6ce3f59bd Allow strings with external buffers to use a pre-initialised buffer. 2020-09-15 19:51:06 +01:00
John Wellbelove
5aa3d734a6 Changed #if defined (ETL_NO_STL) to #if ETL_NOT_USING_STL 2020-09-12 14:10:36 +01:00
John Wellbelove
2abc4ee962 Fixed conditional compilation macro use for template deduction guides 2020-09-12 13:55:09 +01:00
John Wellbelove
14d1b96c64 Added template deduction guides for array and array_view 2020-09-10 13:07:04 +01:00
Shiven Gupta
df5dee6609
Add template deduction guides for array and array_view (#263) 2020-09-09 08:29:07 +01:00
John Wellbelove
4605a8d3c4 Merge branch 'development' 2020-08-30 12:11:48 +01:00
John Wellbelove
f8ddfb1700 Added equality and inequality operators 2020-08-30 12:11:26 +01:00
John Wellbelove
a5998c2f32 Merge branch 'development' 2020-08-30 12:03:15 +01:00
John Wellbelove
8526b2187c Changed front & back to const functions 2020-08-30 12:02:58 +01:00
John Wellbelove
c225293185 Merge branch 'development' 2020-08-30 11:52:22 +01:00
John Wellbelove
0ab92304c0 Changed front & back to return const_reference 2020-08-30 11:51:52 +01:00
John Wellbelove
a28d5af6af Added default constructor 2020-08-30 11:47:08 +01:00
John Wellbelove
d234d5ce0d Added a line coordinate generator using the Bresenham algorithm. 2020-08-30 11:20:00 +01:00
John Wellbelove
27455044a3 Merge branch 'feature/pseudo-containers' into development
# Conflicts:
#	include/etl/version.h
#	library.json
#	library.properties
#	support/Release notes.txt
2020-08-30 11:17:16 +01:00
John Wellbelove
62f596667e Bresenham line algorithm - final 2020-08-30 11:16:07 +01:00
John Wellbelove
3a203a9754 Make etl::reference_wrapper API closer to the STL version. Does not support invocation of a callable object. 2020-08-28 16:14:28 +01:00
Rolan Reznik
5747a861f9
reference_wrapper change allowing to use it for pure abstract classes (#262) 2020-08-28 15:15:51 +01:00
Rolan Reznik
a33a70b5e1
ARM5 (armcc) compiler fixes for C++11. (#261) 2020-08-28 15:12:47 +01:00
John Wellbelove
90cdfc0b58 Added header include 2020-08-28 15:10:24 +01:00
John Wellbelove
405de495ec Fixed etl::stack top level assignment operator not clearing before copy 2020-08-27 19:58:47 +01:00
John Wellbelove
dfb0251e57 Merge branch 'development' 2020-08-27 19:07:40 +01:00
John Wellbelove
f2d6df5944 Fixed etl::stack top level assignment operator not clearing before copy 2020-08-27 18:40:05 +01:00
John Wellbelove
482c69f314 Small refactoring 2020-08-27 13:31:27 +01:00
John Wellbelove
9910569b76 Small refactoring 2020-08-27 10:45:57 +01:00
John Wellbelove
8e76238439 Added all units tests 2020-08-26 12:36:47 +01:00
John Wellbelove
4f20a9e3db Initial Bresenham line algorithm 2020-08-25 12:47:23 +01:00
John Wellbelove
ae64cfa681 Initial Bresenham line algorithm 2020-08-25 11:44:40 +01:00
John Wellbelove
6c5231b508 Merge branch 'development' 2020-08-16 11:32:55 +01:00
John Wellbelove
6788f2761e Fixed issue for incorrect operation of erase(const_iterator, const_iterator)
when the terminating iterator was end() for etl::unordered_map, etl::unordered_multimap, etl::unordered_set and etl::unordered_multiset.
2020-08-16 11:32:23 +01:00
John Wellbelove
f339e8d3da Fixed issue for incorrect operation of erase(const_iterator, const_iterator)
when the terminating iterator was end() for etl::unordered_map, etl::unordered_multimap, etl::unordered_set and etl::unordered_multiset.
2020-08-15 21:00:18 +01:00
John Wellbelove
987f7e49e2 Merge branch 'development'
# Conflicts:
#	.github/workflows/main.yml
2020-08-09 17:25:01 +01:00