Tools made in assistance of the Metacall Project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 rivejä
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;
}