39 Commits

Author SHA1 Message Date
John Wellbelove
f3bf0dc7fe Disable etl::begin(), etl::end() and etl::size() for ETL_NO_STL 2021-10-20 13:34:44 +01:00
Steffen Zimmermann
7968c5c448
fix PARAMETER_HIDDEN (#444)
found with Coverity static code analyzer:
declaration hides parameter "pbucket" (declared in line 1404)
2021-10-12 10:16:55 +01:00
CanastraRF
7c0f169b66
literal with suffix (#416) 2021-08-23 11:01:18 +01:00
Bo Rydberg
5d64e7ff94
Remove non-const versions of iterators for containers (#359) 2021-03-30 08:22:17 +01:00
John Wellbelove
640704cf6b Merge branch 'hotfix/change-static-const-to-static-etl-constant' into development 2021-03-25 17:12:33 +00:00
John Wellbelove
61b0811d65 Change static const to static ETL_CONSTANT 2021-03-25 17:12:17 +00:00
John Wellbelove
01685a36e9 Fix return type for const iterator operators from const_iterator to iterator. 2021-03-25 15:19:20 +00:00
John Wellbelove
87bf9ce76d Updates to C++03 compatibility 2021-03-12 17:31:40 +00:00
John Wellbelove
87554af4f8 Updated file id macros 2021-03-10 12:50:07 +00:00
John Wellbelove
5696c4066b Fix default function templates for C++03 2021-03-10 09:46:41 +00:00
John Wellbelove
7bfdb53e0d Added enable_if for container iterator costructors, to exclude integrals from consideration 2021-01-29 11:33:50 +00:00
Steffen Zimmermann
c09d3087d6
let default assignment operator return a reference to itself (#320)
The default assignment operator in C++ shall return a reference to *this.
2020-12-18 14:09:49 +00:00
John Wellbelove
e122383d7d Updated for automatic detection of <new> or <new.h> 2020-12-06 14:13:37 +00:00
Heinz-Peter Liechtenecker
cc418dd08f
Include new on megaAVR Boards (Arduino Nano Every) (#313)
* Change new to new.h

* Only include <new> header if ETL supports STL

* Adding a flag to define placement new if necessary

Co-authored-by: Heinz-Peter Liechtenecker <h.liechtenecker@fh-kaernten.at>
2020-12-04 12:45:21 +00:00
Rolan Reznik
4d8f7f4943
Keil 5 fixes (#293)
* unordered_map fix for non c++11 profiles.

* __USE_C99_MATH fix for armcc5

* is_convertible fix for armcc5
2020-10-27 08:52:53 +00:00
John Wellbelove
509089c0e2 Added template deduction guides 2020-09-28 13:14:12 +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
e323f2267f Changed http://www.etlcpp.com to https://www.etlcpp.com 2020-05-01 10:22:36 +01:00
John Wellbelove
9da18cdb07 Make move() private 2020-03-31 11:59:35 +01:00
John Wellbelove
a108addf84 Added move API to unordered map and set containers.
Added a 'move' member function that moves items into the containers.
2020-03-30 18:05:33 +01:00
John Wellbelove
4fd8099a25 Updates to pool allocate() syntax for compatibility with older compilers 2020-03-28 10:26:07 +00:00
John Wellbelove
4ffb63344d Added 'friend const_iterator;' to iterator classes 2020-03-27 15:42:38 +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
01d0b42fe4 Modified the way that the 'No STL' macros are defined so that 'std' may be used in ETL code rather than the 'ETLSTD' macro. 2019-11-15 13:28:51 +00:00
John Wellbelove
02f7326a09 Changed STL alternate namespace to always be 'etlstd'.
Changed std:: to ETLSTD:: macro to select std:: or etlstd:: depending on existence of ETL_NO_STL.
2019-10-10 13:05:59 +01:00
John Wellbelove
31161040e7 Fixed unordered_map iterator operator* return type 2019-09-16 15:59:46 +01:00
John Wellbelove
c43620d8d8 Various fixes.
void assign(const_pointer, size_t) did not set the truncation flag.
Fixed resize(0) error for etl::fixed_list
Removed erroneous pointers in etl::unordered_map::begin()
2019-07-13 12:33:52 +01:00
John Wellbelove
fe00fbe56d Added #include <new> 2019-06-01 17:02:42 +01:00
John Wellbelove
97127475ea Merge branch 'hot-fix/unordered_map_erase' into development
# Conflicts:
#	include/etl/version.h
#	support/Release notes.txt
2019-02-13 11:21:19 +01:00
John Wellbelove
aee76d67e8 Merge remote-tracking branch 'origin/feature/bit_stream' into development
# Conflicts:
#	include/etl/profiles/armv6.h
#	include/etl/profiles/armv6_no_stl.h
#	include/etl/version.h
#	support/Release notes.txt
#	test/vs2017/etl.vcxproj.filters
2018-10-07 08:37:14 +01:00
Prasenjit Sengupta
44be4eeedd Add semicolon to DEBUG_COUNT definitions to fix clang extra semicolon warnings (#89) 2018-08-17 07:58:02 +01:00
Prasenjit Sengupta
e31c2756bf Fix clang warnings on etl::unordered_map, etl::unordered_multimap, and etl::unordered_set (#88)
* Fix unused variable warning in etl::unordered_map

* Fix unused parameter warnings in etl::unordered_map/multimap/set
2018-08-15 21:00:18 +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
8085f97e52 Rewrite of debug count so that it does not exists in unit test code or when explicitly enabled. 2018-04-24 14:15:30 +01:00
John Wellbelove
f2416da7ea Changed header guards to be GCC compliant. 2018-04-21 09:24:45 +01:00
John Wellbelove
4864e95b36 New directory layout 2018-03-18 17:48:29 +00:00