Expand calls to load_factor implementation

This commit is contained in:
Daniel James
2017-04-23 10:09:18 +01:00
parent 814926ef31
commit a41a0f3a06
3 changed files with 12 additions and 10 deletions

View File

@@ -2758,12 +2758,6 @@ struct table : boost::unordered::detail::functions<typename Types::hasher,
return policy::to_bucket(bucket_count_, hash_value);
}
float load_factor() const
{
BOOST_ASSERT(bucket_count_ != 0);
return static_cast<float>(size_) / static_cast<float>(bucket_count_);
}
std::size_t bucket_size(std::size_t index) const
{
node_pointer n = begin(index);