Tools made in assistance of the Metacall Project
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

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