| … | … | @@ -39,10 +39,10 @@ This is how you insert a vector of `KeyValue` pairs into the hash table and then |
| 39 | 39 | ```cpp |
| 40 | 40 | std::vector<KeyValue> things_to_insert = { {0,1}, {1,2}, {2,3}, {3,4} }; |
| 41 | 41 | |
| 42 | | KeyValue* pHashTable2 = create_hashtable(kHashTableCapacity); |
| 43 | | insert_hashtable(pHashTable2, things_to_insert.data(), (uint32_t)things_to_insert.size()); |
| 44 | | std::vector<KeyValue> result = iterate_hashtable(pHashTable2); |
| 45 | | destroy_hashtable(pHashTable2); |
| 42 | KeyValue* pHashTable = create_hashtable(); |
| 43 | insert_hashtable(pHashTable, things_to_insert.data(), (uint32_t)things_to_insert.size()); |
| 44 | std::vector<KeyValue> result = iterate_hashtable(pHashTable); |
| 45 | destroy_hashtable(pHashTable); |
| 46 | 46 | ``` |
| 47 | 47 | |
| 48 | 48 | After that runs, the vectors `things_to_insert` and `result` should be the same, but possibly in a different order. |