util/IntrusiveForwardList: pop_front() returns reference

This commit is contained in:
Max Kellermann 2023-09-13 13:40:33 +02:00 committed by Max Kellermann
parent 5c44082b77
commit b0da0bbf8b

View File

@ -193,9 +193,11 @@ public:
return *Cast(head.next);
}
void pop_front() noexcept {
reference pop_front() noexcept {
auto &i = front();
head.next = head.next->next;
--counter;
return i;
}
class const_iterator;