blob: 880910456d1649ad9b916d5c7f4aff84bc41426e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include <functional>
struct XY {
int x = 0;
int y = 0;
XY operator + (const XY &) const;
XY operator - () const;
XY operator - (const XY &) const;
XY& operator += (const XY &);
XY& operator -= (const XY &);
bool operator == (const XY& other) const;
bool operator != (const XY& other) const;
};
template<> struct std::hash<XY> {
size_t operator () (const XY &) const;
};
|