#include <algorithm>
#include <iostream>
#include <vector>

struct Point {
	int x, y;
};

bool operator==(const Point& left, const Point& right) {
	return &left == &right;
}

int main() {
	std::vector<Point> v = {
		{1, 2},
		{3, 4},
		{5, 6},
	};
	
	Point p = {1, 2};
	std::cout << "Found? " << (v.end() != std::find(v.begin(), v.end(), p)) << std::endl;
}