John Wellbelove
784d95acaf
Added additional transparent comparators to unordered containers
2024-12-19 14:33:59 +00:00
John Wellbelove
4a1712b733
#957 Support heterogenous lookup for maps
2024-12-19 14:30:14 +00:00
Aleksander Dejewski
602261ce39
Add contains() method to etl::unordered_map and etl::unordered_set ( #990 )
...
* Add contains() method to etl::unordered_map and etl::unordered_set
* Add contains() method to etl::unordered_multiset and etl::unordered_multimap
Use predefined variables in UT
Move contains() method to correct place in etl::unordered_set
* Fix contains() parameter type
2024-12-19 13:33:02 +00:00
John Wellbelove
489429bd7c
Fixed operator == implementations
2023-12-13 09:58:44 +00:00
İsmail Tüzün
c6fecd9d7c
Set is full error when adding existing item ( #782 )
...
* Fixed set_full error when inserting existing item.
* Added test inserting existing value to full set
* Added test inserting existing value to full flat_set and reference_flat_set
* Fixed unordered_set_full error when inserting existing item.
2023-11-24 11:24:52 +00:00
Soma Veszelovszki
93091cff0f
Fixed: move assignment not working for non-empty containers ( #759 )
2023-09-20 23:06:32 +01:00
John Wellbelove
363a3e2dab
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-04-02 11:06:43 +01:00
Jesse Li
1b3d226547
Fix non-usage of key equal function ( #606 )
...
Co-authored-by: Jesse <jli@planarmotor.com>
2022-10-19 12:22:51 +01:00
John Wellbelove
c39ed5af80
Attempt to fix clang CI error
2022-09-12 00:00:06 +01:00
John Wellbelove
93aa08682c
Attempt to fix clang CI error
2022-09-11 18:34:06 +01:00
John Wellbelove
15fd907549
Merge branch 'hotfix/#582-unordered_set-equality-comparison-fails-when-hash-collisions-occur' into development
2022-09-03 11:57:11 +01:00
John Wellbelove
eceaa23f47
#584 unordered_set::const_iterator has incorrect value_type
2022-09-03 11:56:24 +01:00
John Wellbelove
7c5a6e49a1
Fixed unordered container equality tests to match STL
2022-09-02 20:40:17 +01:00
John Wellbelove
60204d95b6
Initial test for unordered_set
2022-09-02 15:59:21 +01:00
John Wellbelove
4f5847e189
Updates for unordered maps and sets for an API that better matches the STL
2022-09-02 13:32:00 +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
John Wellbelove
9224df106e
Fixed data alignment issues raised by sanitizer
2022-05-16 20:58:07 +01:00
John Wellbelove
740e490aed
Tested ETL traits code.
2022-03-11 20:28:26 +00:00
John Wellbelove
343dabe7e2
Fixes for < GCC 8
2021-11-21 17:29:56 +00:00
John Wellbelove
8872b9a0ae
const_iterator parameters for containers
2021-11-20 19:04:39 +00: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
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
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
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
83347ccfdd
Work in progress
2020-01-09 11:15:50 +00:00
John Wellbelove
b5b480c051
Fix for unordered_multimap, unordered_set and unordered_multiset insert and erase bug.
2019-02-13 20:32:13 +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
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
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
aaac059008
Updated tests
2017-01-31 21:11:23 +00:00
John Wellbelove
6c4a29b498
Fixed bug in erase()
2016-12-30 11:56:08 +00:00
John Wellbelove
dd60c3aa7c
Fixed GCC warnings
2016-12-28 12:57:04 +00:00
John Wellbelove
8bff7a9df4
Removed unsued header include
2016-03-07 19:26:20 +00:00
John Wellbelove
f1c5c20ba7
Changed folder structure to be compatible with Arduino library specifications
2016-02-28 14:04:22 +00:00
John Wellbelove
6eb15a884c
Added unordered_set to project
2016-02-18 20:11:07 +00:00