默认的最大负载因子
运行下面这段程序:
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#include <unordered_map>
int main() {
unordered_map<int, int> m;
cout << m.max_load_factor() << endl;
}
(本题用 g++ -std=c++17 -O0 编译。)
全部评论