util/IntrusiveList: document insert()
This commit is contained in:

committed by
Max Kellermann

parent
cc9d061e51
commit
f1b497fb0c
@@ -486,6 +486,12 @@ public:
|
|||||||
insert(end(), t);
|
insert(end(), t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Insert a new item before the given position.
|
||||||
|
*
|
||||||
|
* @param p a valid iterator (end() is allowed)for this list
|
||||||
|
* describing the position where to insert
|
||||||
|
*/
|
||||||
void insert(iterator p, reference t) noexcept {
|
void insert(iterator p, reference t) noexcept {
|
||||||
static_assert(!constant_time_size ||
|
static_assert(!constant_time_size ||
|
||||||
GetHookMode() < IntrusiveHookMode::AUTO_UNLINK,
|
GetHookMode() < IntrusiveHookMode::AUTO_UNLINK,
|
||||||
|
Reference in New Issue
Block a user