Lines Matching defs:MyStruct
161 struct MyStruct {
163 bool operator==(const MyStruct& rhs) const {return this->x == rhs.x; } // not modifing
164 bool operator>=(const MyStruct& rhs) const { return this->x >= rhs.x; } // not modifing
165 bool operator<=(MyStruct& rhs) const { return this->x <= rhs.x; }
166 bool operator&&(const MyStruct& rhs){ this->x++; return this->x && rhs.x; }
169 bool operator!=(const MyStruct& lhs, const MyStruct& rhs) { return lhs.x == rhs.x; } // not modifing
170 bool operator<(const MyStruct& lhs, const MyStruct& rhs) { return lhs.x < rhs.x; } // not modifing
171 bool operator>(const MyStruct& lhs, MyStruct& rhs) { rhs.x--; return lhs.x > rhs.x; }
172 bool operator||(MyStruct& lhs, const MyStruct& rhs) { lhs.x++; return lhs.x || rhs.x; }
183 bool TestOverloadedOperator(MyStruct& S) {