Typedef'ing hashtable iterator type

This commit is contained in:
Dennis Luxen 2011-07-11 16:55:37 +00:00
parent 2e8744a034
commit 77ae0d8ef4

View File

@ -31,6 +31,7 @@ class HashTable {
typedef google::sparse_hash_map<keyT, valueT> MyHashTable;
public:
typedef typename google::sparse_hash_map<keyT, valueT>::const_iterator MyIterator;
typedef MyIterator iterator;
HashTable() { }
HashTable(const unsigned size) {
table.resize(size);