Remove duplicate hash_table::operator[] (how did this even happen?)
This commit is contained in:
parent
ca2d106725
commit
57aceed172
1 changed files with 0 additions and 8 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue