Fix util::hash_table::find
This commit is contained in:
parent
1e74639ff4
commit
8adfe7320b
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue