Tools made in assistance of the Metacall Project
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

21 wiersze
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;
}