#ifndef PREPARE_H #define PREPARE_H #include // hashmaps and hash #include #include "3thparty/sparsehash/sparse_hash_map" #include "3thparty/sparsehash/dense_hash_map" #include "./3thparty/abseil-cpp/absl/container/node_hash_map.h" #include "./3thparty/abseil-cpp/absl/container/flat_hash_map.h" #include "./3thparty/abseil-cpp/absl/hash/hash.h" #include "./3thparty/tsl/sparse_map.h" #include "./3thparty/tsl/array_map.h" #include "./3thparty/tsl/ordered_map.h" #include "./3thparty/tsl/robin_map.h" #include "./3thparty/tsl/hopscotch_map.h" #include #include "./3thparty/skarupke/bytell_hash_map.hpp" #include "./3thparty/skarupke/flat_hash_map.hpp" #include "./3thparty/skarupke/unordered_map.hpp" #include "./3thparty/parallel_hashmap/phmap.h" #include "./3thparty/emilib/hash_map.hpp" #include "3thparty/robinhood/robin_hood.h" #include using std::string; using absl::Hash; template void prepare(T& map, int size){ map.reserve(size); } void prepare(google::sparse_hash_map& map, int size){ map.set_deleted_key(-1); } void prepare(google::sparse_hash_map& map, int size){ map.set_deleted_key("a"); } void prepare(google::dense_hash_map& map, int size){ map.set_empty_key(0); map.set_deleted_key(-1); } void prepare(google::dense_hash_map& map, int size){ map.set_deleted_key("a"); map.set_empty_key(""); } #endif /* TESTS_H */