Remove duplicate hash_table::operator[] (how did this even happen?)

This commit is contained in:
Nikita Lisitsa 2024-03-03 02:14:41 +03:00
parent ca2d106725
commit 57aceed172

View file

@ -475,14 +475,6 @@ namespace psemek::util
return impl_.insert(std::move(value));
}
template <typename Key1>
Value & operator[] (Key1 const & key)
{
if (auto it = find(key); it != end())
return it->second;
return insert({Key(key), Value{}}).first->second;
}
template <typename Key1>
iterator find(Key1 const & key) const
{