Initial commit

This commit is contained in:
2026-01-24 16:10:02 -05:00
parent e053f094b3
commit cf4020fa08
10 changed files with 267 additions and 0 deletions

14
PairHash.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef PAIRHASH_H
#define PAIRHASH_H
#include <unordered_map>
// Custom hash function for std::pair
template <typename T> struct pair_hash {
std::size_t operator()(const std::pair<T, T> &p) const {
return std::hash<T>()(p.first) ^ (std::hash<T>()(p.second) << 1);
}
};
#endif // PAIRHASH_H