Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. namespace std {
  2. template<>
  3. struct hash<pair<int, int>> {
  4. size_t operator()(const pair<int, int>& a) const {
  5. return a.first * MAGIC + a.second;
  6. }
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement