#ifndef PAIRHASH_H #define PAIRHASH_H #include // Custom hash function for std::pair template struct pair_hash { std::size_t operator()(const std::pair &p) const { return std::hash()(p.first) ^ (std::hash()(p.second) << 1); } }; #endif // PAIRHASH_H