diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-01-19 15:44:01 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-01-19 15:44:01 +0100 |
commit | b5bac7fdeed4e1730f78226bd44bf9cdb1167198 (patch) | |
tree | 8fffeb1b6ce6b66906da30cfc8bbf630a04e0b81 /modules/core | |
parent | f528f24036698e2014f370f174abab286ef397b6 (diff) |
core: Minor comments added
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/c++/id_map.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |