36 Commits

Author SHA1 Message Date
John Wellbelove
aeb8e4f734 Formatted source files 2026-04-02 14:11:45 +01:00
Daniel Santos
f718c54396
Add bounds and empty checks to container classes (#1334)
* add bounds and empty checks to containers

* address code rabbit review

* correct C++11 constexpr error

* rename new constexpr macro and make it global

* rename queue specializations' exceptions

* change front() implementation in locked queue specializations

* refactor usage of CONSTEXPR and NO_EXCEPT

* expand intrusive queue tests

* introduce lock guards on locked queues

* Print test names at test time (#1343)

* revert mutex and return changes on locking queues

* finish reverting the locked queues

---------

Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-03-27 10:17:56 +00:00
John Wellbelove
d884719098 Fixed all 'extra semicolon' warnings 2025-12-16 09:15:26 +00:00
John Wellbelove
9cdef8e399 Added return reference from stack::emplace 2024-12-12 19:42:54 +00:00
John Wellbelove
61da85fa77 Removed float-equal warnings
Added functions is_nan, is_infinity, is_zero & is_exactly_equal
Fixed array-bounds warnings for GCC and -O2 optimisation
2023-11-21 15:13:24 +00:00
John Wellbelove
53084ae932 Added c++03 zero parameter emplace member functions 2023-08-25 02:05:46 +01:00
John Wellbelove
cd18cc6af0 Eradicated all GCC and clang warnings 2022-07-27 10:42:03 +01:00
John Wellbelove
baa47d1c33 Updated copyright notice 2022-06-10 21:45:37 +01:00
CanastraRF
7c0f169b66
literal with suffix (#416) 2021-08-23 11:01:18 +01:00
John Wellbelove
dbfa71944f Abstracted unit test framework header 2021-03-05 13:52:34 +00: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
e323f2267f Changed http://www.etlcpp.com to https://www.etlcpp.com 2020-05-01 10:22:36 +01:00
John Wellbelove
83347ccfdd Work in progress 2020-01-09 11:15:50 +00:00
John Wellbelove
02987191a5 Removed push(void) push_back(void) and push_front(void) function for containers. 2018-09-15 08:58:08 +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
eb222f54bb Containers are now deleteable through a pointer to their 'ixxxx' class. 2018-01-30 08:47:49 +00:00
John Wellbelove
bf06775b51 Added fast clear for types that are trivially destructible. (Integral and pointer types only for C++03) 2018-01-27 15:40:03 +00:00
John Wellbelove
9acfc2c9a6 Merge remote-tracking branch 'origin/development'
# Conflicts:
#	library.properties
#	test/codeblocks/ETL.depend
#	test/codeblocks/ETL.layout
2017-09-21 14:28:18 +01:00
John Wellbelove
2931963b81 Merge remote-tracking branch 'origin/development'
# Conflicts:
#	src/factory.h
#	test/codeblocks/ETL.depend
#	test/test_factory.cpp
#	test/vs2017/etl.vcxproj.filters
2017-09-17 13:02:15 +01:00
John Wellbelove
c981bd0c96 Added emplace functions supporting up to four parameters to the following containers.
forward_list
list
vector
queue
priority_queue
stack

# Conflicts:
#	src/vector.h
#	test/data.h
#	test/vs2017/random.csv
2017-07-21 11:59:40 +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
8d59c170ef Added test_pop_excess 2016-05-03 19:16:53 +01:00
John Wellbelove
f1c5c20ba7 Changed folder structure to be compatible with Arduino library specifications 2016-02-28 14:04:22 +00:00
John Wellbelove
ceef10dc93 Disabled copy constructor.
Added interface assignment operator.
2016-01-14 18:31:43 +00:00
jwellbelove
01ff869fb5 Fixed test compile warnings 2016-01-13 16:10:15 +00:00
John Wellbelove
16a1978f43 Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
jwellbelove
ae385d5561 Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
jwellbelove
ee3dd66576 Added copy constructor and assignment operator 2015-01-24 19:30:15 +00:00
jwellbelove
3145c28a1c Modified to use placement new as allocator. 2015-01-20 20:58:29 +00:00
jwellbelove
2ebec0cb35 Removed top exception 2014-12-08 20:28:23 +00:00
jwellbelove
9c2619ddfd Mostly updated comments
Some extra tests
2014-11-21 17:10:04 +00:00
jwellbelove
21cfc811cf Added 'swap' 2014-11-06 12:54:00 +00:00
jwellbelove
1108b9e5c7 Updates for Code::Blocks and CodeLite
Updates so that Code::Blocks and CodeLite can compile the tests.
Made include guards upper case.
2014-11-05 17:41:17 +00:00
jwellbelove
102e4a8bed Changed exception names 2014-11-03 12:33:05 +00:00
jwellbelove
4e2bfb2740 Modified unit tests to use CHECK_THROW 2014-10-31 15:59:22 +00:00
jwellbelove
670c8c7463 Added stack container class 2014-10-27 11:30:30 +00:00