concurrent_unordered_set::max_load_factor Method

获取或设置容器的最大负载因素。 最大负载因素的速度可能比在所有存储桶是元素的方法,容器其其内部表之前。

float max_load_factor() const;

void max_load_factor(
   float _Newmax
);

参数

  • _Newmax

返回值

第一个成员函数返回存储的最大负载因素。 如果所提供的负载因素无效,第二个成员函数不返回值,但是 out_of_range 引发异常。

要求

**标头:**internal_concurrent_hash.h

**命名空间:**并发

请参见

参考

concurrent_unordered_set 类