mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Update reserve_tests to pass for power of two resize policy
This commit is contained in:
@ -160,9 +160,9 @@ template <class UnorderedContainer> void rehash_tests()
|
|||||||
// properly deallocate the current bucket array and then reallocate the
|
// properly deallocate the current bucket array and then reallocate the
|
||||||
// larger one
|
// larger one
|
||||||
//
|
//
|
||||||
std::size_t prev_count = count;
|
std::size_t prev_count = s.bucket_count();
|
||||||
|
|
||||||
count = s.bucket_count() + 1;
|
count = s.bucket_count() + 2;
|
||||||
s.rehash(count);
|
s.rehash(count);
|
||||||
|
|
||||||
BOOST_TEST_GT(num_allocations, prev_allocations);
|
BOOST_TEST_GT(num_allocations, prev_allocations);
|
||||||
|
Reference in New Issue
Block a user