util/IntrusiveList: add insert_after()
This commit is contained in:
parent
f1b497fb0c
commit
91437d9e63
|
@ -507,6 +507,13 @@ public:
|
||||||
++counter;
|
++counter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Like insert(), but insert after the given position.
|
||||||
|
*/
|
||||||
|
void insert_after(iterator p, reference t) noexcept {
|
||||||
|
insert(std::next(p), t);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Move one item of the given list to this one before the
|
* Move one item of the given list to this one before the
|
||||||
* given position.
|
* given position.
|
||||||
|
|
Loading…
Reference in New Issue