Peter Dimov
ff3f5067c8
Merge pull request #56 from LeonineKing1199/feature/allocator-traits
...
Replace internal implementation of `allocation_traits` with Core's
2021-12-08 01:23:02 +02:00
LeonineKing1199
82b33708ba
Update allocator_traits
test to only check for inherited SOCCC when the C++11 allocator
is present
2021-12-07 11:21:43 -08:00
LeonineKing1199
ea5cabb27f
Update test to use two implicitly convertible types (const and non-const iterators) and the associated compile-time tests
2021-12-07 10:48:09 -08:00
LeonineKing1199
4041d06e95
Clean up tests
2021-12-06 15:04:40 -08:00
LeonineKing1199
13cd5aa4ce
Implement initial draft of heterogeneous extract()
2021-12-06 13:06:05 -08:00
LeonineKing1199
afb83a6cb9
Refactor erase()
tests to use BOOST_TEST_EQ
where applicable
2021-12-06 08:52:02 -08:00
LeonineKing1199
f5b03fb2e8
Pull out expressions with side-effects from the testing assertions
2021-12-06 08:30:57 -08:00
LeonineKing1199
b8d3aa2a68
Light cleanup of test
2021-12-03 11:19:58 -08:00
LeonineKing1199
52f154ec02
Flesh out test suite for heterogeneous erase()
2021-12-03 10:17:50 -08:00
LeonineKing1199
33f84624ec
Add initial draft of heterogeneous erase()
2021-12-02 15:59:12 -08:00
LeonineKing1199
a97483b928
Add test cases for empty UnorderedMaps for equal_range()
2021-12-02 09:42:30 -08:00
LeonineKing1199
9955886ef5
Improve heterogeneous equal_range()
test suite to check iterator distance and that the correct key was pulled, including when the map contains multiple keys
2021-12-02 09:18:24 -08:00
LeonineKing1199
13f40e4333
Implement heterogeneous equal_range()
for unordered_map
2021-12-01 09:39:07 -08:00
LeonineKing1199
3eb2d3c4b3
Add comments about nature of test
2021-11-29 14:55:18 -08:00
LeonineKing1199
8f1fc75fdf
Implement heterogeneous find()
2021-11-29 14:37:04 -08:00
Peter Dimov
0d4b753409
Merge pull request #45 from LeonineKing1199/transparent-count-unordered_map
...
Transparent count unordered map
2021-11-24 01:50:28 +02:00
LeonineKing1199
6f5727cbdb
Clean up tests by pulling transparent tests into a named function
2021-11-23 14:14:26 -08:00
LeonineKing1199
3f1e4a703a
Clean up tests to be a bit more readable
2021-11-23 12:15:53 -08:00
LeonineKing1199
bc9eca70d0
Remove unnecessary assignment operator for test key
2021-11-23 12:04:00 -08:00
LeonineKing1199
69b882a14b
Add defaulted copy assignment operators when supported
2021-11-23 11:10:03 -08:00
LeonineKing1199
6984e6a4f2
Remove unnecessary move support
2021-11-23 10:57:26 -08:00
LeonineKing1199
93216374ef
Flesh out test suite to cover all permutations of transparent/non-transparent Hash & KeyEqual pairs
2021-11-22 13:30:10 -08:00
LeonineKing1199
937c3484cf
Flesh out test case
2021-11-22 12:27:29 -08:00
LeonineKing1199
f41b3e8295
Get initial prototype of transparent count()
working
2021-11-19 15:29:57 -08:00
LeonineKing1199
fe439890e8
Remove unneeded macro as Config defines BOOST_NOEXCEPT
2021-11-19 10:10:52 -08:00
LeonineKing1199
e29f762116
Fix warning about using implicitly defined copy constructor/assignment by completing the Rule of 5 for test allocator
2021-11-19 10:10:52 -08:00
Peter Dimov
c0a9f638ce
Merge pull request #37 from LeonineKing1199/memory-tracker-fixes
...
Replace `BOOST_TEST` call with `BOOST_ASSERT` to resolve testing woes
2021-11-19 04:26:33 +02:00
LeonineKing1199
2e1ef850e3
Add const qualification to auto-generated allocator methods in test suite
2021-11-18 10:25:44 -08:00
LeonineKing1199
dbba786a35
Add missing const-qualification for operator==
member functions
2021-11-18 10:24:57 -08:00
LeonineKing1199
d0d4be9e35
Add missing operator==
overloads for direct list_iterator
comparisons
2021-11-18 10:19:46 -08:00
LeonineKing1199
24a38922bd
Replace BOOST_TEST
call with BOOST_ASSERT
to resolve https://github.com/boostorg/unordered/issues/36
2021-11-18 09:36:04 -08:00
LeonineKing1199
1e553df5b6
Add explicit tests around use of scoped_allocator_adaptor
to emulat… ( #31 )
...
* Add explicit tests around use of `scoped_allocator_adaptor` to emulate issue https://github.com/boostorg/unordered/issues/22
* Refine test to only run in C++11 mode and later with possibility of re-introducing C++03 support later
* Update test to use `<boost/cstdint.hpp>`
* Refactor test to use `UNORDERED_AUTO_TEST`
* Cleanup how the scoped allocator test is conditionally compiled
* Update test to generate a UUID for the name of the shared memory segment so tests can run safely in parallel
* Update test jamfile to relocate the Filesystem link dependency directly to the test that requires it
2021-11-15 21:22:40 +02:00
Peter Dimov
0f37f774f1
Merge branch 'develop' of https://github.com/yutakasi634/unordered into feature/pr-14
2021-09-01 04:15:55 +03:00
Peter Dimov
70fca4483e
std::equal_to has no first_argument_type in C++20
2021-08-31 21:16:09 +03:00
Peter Dimov
b2b017accb
Disable -Wfloat-equal for clang-cl as well
2021-08-31 21:10:52 +03:00
Peter Dimov
6a59e6db39
Disable variadic macro warnings from Boost.PP for gcc
2021-08-21 19:15:23 +03:00
Peter Dimov
e36dce52ba
Disable variadic macro warnings from Boost.PP for clang
2021-08-21 19:08:40 +03:00
Edward Diener
887f1dc07c
Change __BORLANDC__ to BOOST_BORLANDC and __CODEGEARC__ to BOOST_CODEGEARC, which are3defined in Boost config for the Embarcadero non-clang-based compilers.
2020-03-31 22:47:48 -04:00
yutaka
0d033679d4
Fix typo
2020-02-03 20:48:35 +09:00
Daniel James
cfd4bacc2c
Stop using BOOST_DEDUCED_TYPENAME
...
We no longer support any of the compilers that require it. I'd be very
surprised if anything was working on them.
2018-01-27 09:39:59 +00:00
Daniel James
09be9bae04
Use boost::is_nothrow_swappable, now that it's available everywhere
2018-01-27 09:38:19 +00:00
Daniel James
0d34053870
Use boost::to_address in node_handle_tests
2018-01-26 17:47:47 +00:00
Daniel James
66533ace80
Add element_type
to nodes, so that pointer_traits will work
...
Might be better to change the template signature of iterators, but that would
be a disruptive change to make at the moment.
2018-01-26 17:43:06 +00:00
Daniel James
1cc3f680e8
Fix a couple more explicit default constructors for Visual C++ 7.1
2018-01-20 11:49:07 +00:00
Daniel James
f7665a2743
Another attempt to fix insert_exception_tests on Visual C++ 7.1
...
Try extracting the nested template structs.
2018-01-20 08:57:56 +00:00
Daniel James
dc9faddf22
Try to fix constructor_tests on Visual C++ 7.1
...
I'm really not sure why it fails to compile, the error message isn't very
helpful. I assume it might be because allocator1 has an explicit default
constructor, so I tried making it implicit.
2018-01-17 10:40:58 +00:00
Daniel James
e64c5b34df
Try to fix insert_exception_tests on Visual C++ 7.1
...
It doesn't seem to like the nested template structs. If this doesn't work, I'll
try moving them into the top level.
2018-01-17 10:24:07 +00:00
Daniel James
57492c1a94
Make allocator comparison const in allocator_traits test
2018-01-13 20:31:45 +00:00
Daniel James
df8fbca007
Double brackets for BOOST_STATIC_ASSERT
2018-01-13 20:31:45 +00:00
Daniel James
72fb9c7c96
Suppress warnings in noexcept_tests
2018-01-13 20:31:45 +00:00