float max_load_factor() const; |
(1) |
(C++11 起) |
void max_load_factor( float ml ); |
(2) |
(C++11 起) |
| | |
管理最大載入因子(每個桶中的元素數量)。如果載入因子超過此閾值,容器會自動增加桶的數量。
1) 返回當前最大載入因子。
2) 將最大載入因子設定為 ml。
[編輯] 引數
[編輯] 返回值
1) 當前最大載入因子。
2) (無)
[編輯] 複雜度
常數時間。
[編輯] 參閱
|
返回每個桶的平均元素數量 (public member function) [編輯] |