Adds simple iterator support to the esan hashtable.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/esan/esan_hashtable.h | ||
---|---|---|
70 | Specify that iterator copies data, so it would be inefficient for non-primitive types. | |
344 | I'm not sure that this iterator is correct when table is empty. Could you add a test please? | |
test/esan/Unit/hashtable.cpp | ||
109 | Please also add a small test to make sure it works with for (auto Pair : DataTable) { |
lib/esan/esan_hashtable.h | ||
---|---|---|
344 | I believe it should work...and it works in my added test. |
Specify that iterator copies data, so it would be inefficient for non-primitive types.