diff options
Diffstat (limited to 'XY.h')
-rw-r--r-- | XY.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,7 @@ #pragma once +#include <functional> + struct XY { int x = 0; int y = 0; @@ -13,3 +15,7 @@ struct XY { bool operator != (const XY& other) const; }; +template<> struct std::hash<XY> { + size_t operator () (const XY &) const; +}; + |