HashTable class missed operator[]
This commit is contained in:
parent
ed608f9f13
commit
08661558f2
@ -56,6 +56,10 @@ public:
|
|||||||
table.clear();
|
table.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline
|
||||||
|
valueT & operator[] (keyT key) {
|
||||||
|
return table[key];
|
||||||
|
}
|
||||||
private:
|
private:
|
||||||
MyHashTable table;
|
MyHashTable table;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user