#include <utility> using namespace std::rel_ops; struct pnt { int x, y; bool operator < ( const pnt &p ) const { return x < p.x; } }; int main() { pnt a, b; a > b; }