util/IntrusiveList: document insert()

This commit is contained in:
Max Kellermann 2023-07-21 13:15:33 +02:00 committed by Max Kellermann
parent cc9d061e51
commit f1b497fb0c
1 changed files with 6 additions and 0 deletions

View File

@ -486,6 +486,12 @@ public:
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 {
static_assert(!constant_time_size ||
GetHookMode() < IntrusiveHookMode::AUTO_UNLINK,