forked from boostorg/unordered
Adjust the unordered defaults so that emplace takes more parameters and less buckets are created by default.
[SVN r55100]
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
#include <boost/unordered/detail/config.hpp>
|
#include <boost/unordered/detail/config.hpp>
|
||||||
|
|
||||||
#if !defined(BOOST_UNORDERED_EMPLACE_LIMIT)
|
#if !defined(BOOST_UNORDERED_EMPLACE_LIMIT)
|
||||||
#define BOOST_UNORDERED_EMPLACE_LIMIT 5
|
#define BOOST_UNORDERED_EMPLACE_LIMIT 10
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
@ -85,7 +85,7 @@ namespace boost {
|
|||||||
namespace unordered_detail {
|
namespace unordered_detail {
|
||||||
template <class T> struct type_wrapper {};
|
template <class T> struct type_wrapper {};
|
||||||
|
|
||||||
static const std::size_t default_initial_bucket_count = 50;
|
static const std::size_t default_initial_bucket_count = 11;
|
||||||
static const float minimum_max_load_factor = 1e-3f;
|
static const float minimum_max_load_factor = 1e-3f;
|
||||||
|
|
||||||
inline std::size_t double_to_size_t(double f)
|
inline std::size_t double_to_size_t(double f)
|
||||||
|
Reference in New Issue
Block a user