Перегрузка оператора сравнения у Point

This commit is contained in:
2025-12-08 23:14:55 +03:00
parent 24316cdd4f
commit d75344982e

View File

@@ -68,6 +68,10 @@ public:
int get_tag() {
return tag;
}
bool operator==(Point p) {
return *x == *p.x && *y == *p.y;
}
};
using VEC_P = std::vector<Point>;