mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Add missing operator==
overloads for direct list_iterator
comparisons
This commit is contained in:
@ -113,6 +113,10 @@ namespace test {
|
|||||||
ptr_ = ptr_->next_;
|
ptr_ = ptr_->next_;
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator==(list_iterator y) const { return ptr_ == y.ptr_; }
|
||||||
|
bool operator!=(list_iterator y) const { return ptr_ != y.ptr_; }
|
||||||
|
|
||||||
bool operator==(const_iterator y) const { return ptr_ == y.ptr_; }
|
bool operator==(const_iterator y) const { return ptr_ == y.ptr_; }
|
||||||
bool operator!=(const_iterator y) const { return ptr_ != y.ptr_; }
|
bool operator!=(const_iterator y) const { return ptr_ != y.ptr_; }
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user