mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-11 21:44:01 +00:00
Add missing operator==
overloads for direct list_iterator
comparisons
This commit is contained in:
parent
2d69c7a5ca
commit
d0d4be9e35
@ -113,6 +113,10 @@ namespace test {
|
||||
ptr_ = ptr_->next_;
|
||||
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_; }
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user