Fix util::hash_table::find

This commit is contained in:
Nikita Lisitsa 2023-08-24 17:32:17 +03:00
parent 1e74639ff4
commit 8adfe7320b

View file

@ -129,6 +129,8 @@ namespace psemek::util
template <typename Key>
hash_table_iterator<T> find(Key const & key) const
{
if (size_ == 0)
return end();
std::size_t hash = this->hash()(key);
return find_impl(key, hash);
}