aboutsummaryrefslogtreecommitdiff
path: root/XY.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-24 18:32:55 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-24 18:32:55 +0200
commitfaa82f0a6004026c94a6415baf5e138b48dc1629 (patch)
treeead573bf9ec72a74569b79724c732c17dd9d0fb3 /XY.cpp
parentafc66d3013b7d47c6c22d6a99809bc3e7d1ff0dc (diff)
implement weird dijkstra
Diffstat (limited to 'XY.cpp')
-rw-r--r--XY.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/XY.cpp b/XY.cpp
index e2aa075..eaebe1f 100644
--- a/XY.cpp
+++ b/XY.cpp
@@ -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);
+}
+