util/IntrusiveList: add single-item splice() overload
This commit is contained in:
parent
df15c418c7
commit
60e640af5a
@ -535,6 +535,17 @@ public:
|
||||
++counter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Move one item of the given list to this one before the
|
||||
* given position.
|
||||
*/
|
||||
void splice(iterator position,
|
||||
IntrusiveList &from, iterator i) noexcept {
|
||||
auto &item = *i;
|
||||
from.erase(i);
|
||||
insert(position, item);
|
||||
}
|
||||
|
||||
/**
|
||||
* Move the given range of items of the given list to this one
|
||||
* before the given position.
|
||||
|
Loading…
Reference in New Issue
Block a user