From b5bac7fdeed4e1730f78226bd44bf9cdb1167198 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 19 Jan 2024 15:44:01 +0100 Subject: core: Minor comments added --- modules/core/c++/id_map.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/core/c++/id_map.h b/modules/core/c++/id_map.h index d8329cf..9ad2847 100644 --- a/modules/core/c++/id_map.h +++ b/modules/core/c++/id_map.h @@ -32,10 +32,16 @@ private: */ void reduce_free_ids() noexcept { for(;;){ + /** + * If we have no free ids left, we also have nothing to reduce + */ if(free_ids_.empty()){ break; } + /** + * The front contains the highest free id. + */ if((free_ids_.front().get_value() + 1) < data_.size()){ break; } -- cgit v1.2.3