Lines Matching refs:rhs
94 difference_type operator-(const StrideIterator& rhs) {
95 DCHECK_EQ(stride_, rhs.stride_);
96 DCHECK_EQ((ptr_ - rhs.ptr_) % stride_, 0u);
97 return (ptr_ - rhs.ptr_) / stride_;
118 friend bool operator<(const StrideIterator<U>& lhs, const StrideIterator<U>& rhs);
128 bool operator<(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
129 DCHECK_EQ(lhs.stride_, rhs.stride_);
130 return lhs.ptr_ < rhs.ptr_;
134 bool operator>(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
135 return rhs < lhs;
139 bool operator<=(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
140 return !(rhs < lhs);
144 bool operator>=(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
145 return !(lhs < rhs);