From 95db0d349d14ecc69f7edc970d5251455b65a4be Mon Sep 17 00:00:00 2001 From: Hristo Partenov <146854527+ico12319@users.noreply.github.com> Date: Thu, 2 Jan 2025 00:05:40 +0200 Subject: Update linear-probing.hpp --- Seminar10/src/hashmap/linear-probing.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Seminar10/src/hashmap/linear-probing.hpp b/Seminar10/src/hashmap/linear-probing.hpp index c454388..04a541f 100644 --- a/Seminar10/src/hashmap/linear-probing.hpp +++ b/Seminar10/src/hashmap/linear-probing.hpp @@ -197,6 +197,7 @@ void linear_probing_hashmap::erase(const Key& key) { current_node.deleted = true; current_node.empty = true; + _size--; break; } -- cgit v1.3.1-23-gd82d