util/IntrusiveForwardList: pop_front() returns reference
This commit is contained in:
parent
5c44082b77
commit
b0da0bbf8b
@ -193,9 +193,11 @@ public:
|
|||||||
return *Cast(head.next);
|
return *Cast(head.next);
|
||||||
}
|
}
|
||||||
|
|
||||||
void pop_front() noexcept {
|
reference pop_front() noexcept {
|
||||||
|
auto &i = front();
|
||||||
head.next = head.next->next;
|
head.next = head.next->next;
|
||||||
--counter;
|
--counter;
|
||||||
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
class const_iterator;
|
class const_iterator;
|
||||||
|
Loading…
Reference in New Issue
Block a user