[zion] Update LinkedList iterator semantics.
This commit is contained in:
parent
242a18ae3c
commit
b27672d5de
4 changed files with 7 additions and 7 deletions
|
|
@ -88,7 +88,7 @@ class LinkedList {
|
|||
}
|
||||
|
||||
T& operator*() { return item_->item; }
|
||||
T& operator->() { return item_->item; }
|
||||
T* operator->() { return &item_->item; }
|
||||
bool operator==(const Iterator& other) { return item_ == other.item_; }
|
||||
bool operator!=(const Iterator& other) { return item_ != other.item_; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue