Tools made in assistance of the Metacall Project
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

21 行
447 B

#include "lfhmap.hpp"
#include <string>
#include <iostream>
int main() {
size_t v = 13;
auto map = new mct20::lfhmap<size_t, std::string, 80000>();
for(int a = 0; a < 250000; a++) {
//if(a % 1000 == 0) std::cout << a << std::endl;
map->set(v, std::to_string(v));
if(auto acc = map->get(v); acc) {
const std::string& t = acc.value();
if(t != std::to_string(v))
return 1;
} else
return 1;
v*=121;
v+=17;
}
return 0;
}