util/IntrusiveForwardList: add method iterator_to()
This commit is contained in:
parent
f448bfd3f3
commit
6d39b401b5
|
@ -301,6 +301,10 @@ public:
|
|||
return {last_cache.value};
|
||||
}
|
||||
|
||||
static constexpr iterator iterator_to(reference t) noexcept {
|
||||
return {&ToNode(t)};
|
||||
}
|
||||
|
||||
class const_iterator final {
|
||||
friend IntrusiveForwardList;
|
||||
|
||||
|
@ -358,6 +362,10 @@ public:
|
|||
return {last_cache.value};
|
||||
}
|
||||
|
||||
static constexpr const_iterator iterator_to(const_reference t) noexcept {
|
||||
return {&ToNode(t)};
|
||||
}
|
||||
|
||||
void push_front(reference t) noexcept {
|
||||
auto &new_node = ToNode(t);
|
||||
|
||||
|
|
Loading…
Reference in New Issue