|
|
- #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;
- }
|