util/IntrusiveList: add postfix operator++

This commit is contained in:
Max Kellermann 2022-12-01 16:29:47 +01:00 committed by Max Kellermann
parent 57673136d8
commit e2abade6aa

View File

@ -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;