From 91c2dbca67011418e0b2e0fd105f26b8eeac5949 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 2 Jun 2024 15:47:41 +0300 Subject: [PATCH] Fixed in util::hash_table clearing & destructor --- libs/util/include/psemek/util/hash_table.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/util/include/psemek/util/hash_table.hpp b/libs/util/include/psemek/util/hash_table.hpp index e815b0df..2de28b0e 100644 --- a/libs/util/include/psemek/util/hash_table.hpp +++ b/libs/util/include/psemek/util/hash_table.hpp @@ -234,6 +234,12 @@ namespace psemek::util for (auto & entry : storage_.entries()) entry.reset(); size_ = 0; + tombstone_count_ = 0; + } + + ~hash_table_impl() + { + clear(); } hash_table_iterator begin() const