From faa82f0a6004026c94a6415baf5e138b48dc1629 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 24 Oct 2024 18:32:55 +0200 Subject: implement weird dijkstra --- XY.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'XY.cpp') 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::operator () (const XY & instance) const { + return instance.x | (instance.y << 16); +} + -- cgit v1.2.3