mirror of
https://github.com/boostorg/boost_unordered_benchmarks.git
synced 2026-02-18 14:02:09 +00:00
provide small initial size to cfoa::table to prevent capacity overflows
This commit is contained in:
2
cfoa.hpp
2
cfoa.hpp
@@ -1298,7 +1298,7 @@ public:
|
||||
const_iterator>::type;
|
||||
|
||||
table(
|
||||
std::size_t n=0,const Hash& h_=Hash(),const Pred& pred_=Pred(),
|
||||
std::size_t n=1000,const Hash& h_=Hash(),const Pred& pred_=Pred(),
|
||||
const Allocator& al_=Allocator()):
|
||||
hash_base{empty_init,h_},pred_base{empty_init,pred_},
|
||||
allocator_base{empty_init,al_},size_{0},arrays(new_arrays(n)),
|
||||
|
||||
Reference in New Issue
Block a user