From 12977a50bcc9a02344c4f0b1fe918b01a5aa8c00 Mon Sep 17 00:00:00 2001 From: LeonineKing1199 Date: Fri, 3 Dec 2021 08:41:42 -0800 Subject: [PATCH] Add hopefully helpful comment to the source --- include/boost/unordered/detail/implementation.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index bebf7486..fe1d0023 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -3631,7 +3631,11 @@ namespace boost { node_pointer n = next_node(prev); if (!n) { return link_pointer(); - } else if (n->is_first_in_group()) { + } + // the `first_in_group()` checks are required for the multi-containers + // for the unique containers, this condition seems to be always true + // + else if (n->is_first_in_group()) { if (node_bucket(n) != bucket_index) { return link_pointer(); } else if (eq(k, this->get_key(n))) {