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