From f1b497fb0cbbb0a800b1f761e6bbbffe1359a850 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 21 Jul 2023 13:15:33 +0200 Subject: [PATCH] util/IntrusiveList: document insert() --- src/util/IntrusiveList.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index 6e10f9797..319137744 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -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,