840 Commits

Author SHA1 Message Date
John Wellbelove
c6f327f4bf Conditionally disable template deduction guide tests 2020-09-29 12:51:23 +01:00
John Wellbelove
18d8236f91 Conditionally disable template deduction guide tests 2020-09-29 11:23:10 +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
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
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
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
9f018d9a43 Removed explicit from C array constructor 2020-09-22 17:49:07 +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
f7901c2899 Work around for Clang error in etl::bresenham_line tests. 2020-09-12 15:34:07 +01:00
John Wellbelove
1b2aca4606 Work around for Clang error in etl::bresenham_line tests. 2020-09-12 15:26:34 +01:00
John Wellbelove
e7d58dd52b Work around for Clang error in etl::bresenham_line tests. 2020-09-12 15:08:54 +01:00
John Wellbelove
33842f4fe5 Work around for Clang error in etl::bresenham_line tests. 2020-09-12 15:02:02 +01:00
John Wellbelove
911ec65e1b Exclude MSVC compiler due to Appveyor reporting an internal compiler error 2020-09-12 14:45:48 +01:00
John Wellbelove
83f710d636 Try to detect Appveyor 2020-09-12 14:28:36 +01:00
John Wellbelove
14d1b96c64 Added template deduction guides for array and array_view 2020-09-10 13:07:04 +01:00
John Wellbelove
2b33a7c211 Revert changes 2020-08-31 11:16:42 +01:00
John Wellbelove
360afcf0e5 Minor change to Bresenham line unit test 2020-08-31 11:07:17 +01:00
John Wellbelove
0a7148a796 Minor change to Bresenham line unit test 2020-08-31 11:01:55 +01:00
John Wellbelove
d400fe2f92 Minor change to Bresenham line unit test 2020-08-31 10:45:05 +01:00
John Wellbelove
595a63e6f0 Minor change to Bresenham line unit test 2020-08-31 10:26:38 +01:00
John Wellbelove
f8ddfb1700 Added equality and inequality operators 2020-08-30 12:11:26 +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
John Wellbelove
405de495ec Fixed etl::stack top level assignment operator not clearing before copy 2020-08-27 19:58:47 +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
ae64cfa681 Initial Bresenham line algorithm 2020-08-25 11:44:40 +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
efbfc5c8ff clang 9 compatibility 2020-08-09 17:01:45 +01:00
John Wellbelove
50b60c025d String stream test << operator in etl namespace 2020-08-08 13:52:09 +01:00
John Wellbelove
1f2fd18d88 String stream test << operator 2020-08-08 13:52:08 +01:00
John Wellbelove
d389f06cdf String stream test << operator 2020-08-08 13:52:08 +01:00
John Wellbelove
b5bdb4f566 String stream test << operator in etl namespace 2020-08-07 09:57:34 +01:00
John Wellbelove
cb7e224f93 String stream test << operator 2020-08-07 09:39:14 +01:00
John Wellbelove
744618ceaa String stream test << operator 2020-08-07 08:44:47 +01:00
John Wellbelove
5a604e1124 String stream test << operator 2020-08-07 08:33:25 +01:00
John Wellbelove
a0a86aa748 Added iterator comparisons 2020-08-06 20:45:52 +01:00
John Wellbelove
bd578b6e77 Resolve 0U ambiguity in string utility tests 2020-08-02 15:14:52 +01:00
John Wellbelove
2effe18ca3 Update CMakeLists.txt 2020-08-02 14:04:01 +01:00
John Wellbelove
c83ac6dcb5 Merge branch 'feature/string-utilities' into development 2020-08-01 16:21:41 +01:00
John Wellbelove
09faee80da Merge branch 'feature/string-utilities' into development 2020-08-01 15:57:20 +01:00
finger42
8f1361649e
Build and run tests with Clang-9 on Linux (#252)
* Try to build on Ubuntu-18.04 with Clang-9

* Build with pushes on clang-9 branch too

* Using CC and CXX to set clang-9

* Adding atomic lib for test build on Linux with Clang

* Partial conversion CHECK_EQUAL to CHECK for clang-9

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

Co-authored-by: finger42 <finger42>
2020-08-01 14:20:14 +01:00