forked from boostorg/unordered
removed unnecessary check in max_load
This commit is contained in:
@ -729,16 +729,11 @@ private:
|
|||||||
|
|
||||||
std::size_t max_load()const
|
std::size_t max_load()const
|
||||||
{
|
{
|
||||||
if(!arrays.elements){
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
float fml=mlf*(float)(capacity());
|
float fml=mlf*(float)(capacity());
|
||||||
auto res=(std::numeric_limits<std::size_t>::max)();
|
auto res=(std::numeric_limits<std::size_t>::max)();
|
||||||
if(res>(std::size_t)fml)res=(std::size_t)fml;
|
if(res>(std::size_t)fml)res=(std::size_t)fml;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static inline auto key_from(const value_type& x)
|
static inline auto key_from(const value_type& x)
|
||||||
->decltype(type_policy::extract(x))
|
->decltype(type_policy::extract(x))
|
||||||
|
Reference in New Issue
Block a user