diff options
Diffstat (limited to 'XY.cpp')
-rw-r--r-- | XY.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -43,3 +43,7 @@ bool XY::operator != (const XY& rhs) const { return !(*this == rhs); } +size_t std::hash<XY>::operator () (const XY & instance) const { + return instance.x | (instance.y << 16); +} + |