util/IntrusiveList: add postfix operator++
This commit is contained in:
parent
57673136d8
commit
e2abade6aa
|
@ -382,6 +382,12 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
auto operator++(int) noexcept {
|
||||
auto old = *this;
|
||||
cursor = cursor->next;
|
||||
return old;
|
||||
}
|
||||
|
||||
auto &operator--() noexcept {
|
||||
cursor = cursor->prev;
|
||||
return *this;
|
||||
|
@ -447,6 +453,12 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
auto operator++(int) noexcept {
|
||||
auto old = *this;
|
||||
cursor = cursor->next;
|
||||
return old;
|
||||
}
|
||||
|
||||
auto &operator--() noexcept {
|
||||
cursor = cursor->prev;
|
||||
return *this;
|
||||
|
|
Loading…
Reference in New Issue