Lines Matching refs:rhs
222 friend bool operator==( const int& lhs, const Foo& rhs ) {
223 CHECK_FAST_MESSAGE(rhs.is_valid_or_zero(), "Comparing invalid objects");
224 return lhs == rhs.my_bar;
227 friend bool operator==( const Foo& lhs, const int& rhs ) {
229 return lhs.my_bar == rhs;
232 friend bool operator==( const Foo& lhs, const Foo& rhs ) {
234 CHECK_FAST_MESSAGE(rhs.is_valid_or_zero(), "Comparing invalid objects");
235 return lhs.my_bar == rhs.my_bar;
238 friend bool operator<( const Foo& lhs, const Foo& rhs ) {
240 CHECK_FAST_MESSAGE(rhs.is_valid_or_zero(), "Comparing invalid objects");
241 return lhs.my_bar < rhs.my_bar;
286 friend bool operator==( const FooIteratorType& lhs, const FooIteratorType& rhs ) {
287 return lhs.x_bar == rhs.x_bar;
290 friend bool operator!=( const FooIteratorType& lhs, const FooIteratorType& rhs ) {
291 return !(lhs == rhs);