OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-SimpleGPUHashTable commits / 80ff6de

Updated screenshot, README, and fixed unused param in create_hashtable
80ff6dedebc4bee32e8b99afc7f81169c257383c
by David Farrell <nosferalatu@gmail.com> · 2020-03-10T18:39:01.000Z

Changed files (1) +4 -4

README.md +4 -4
……@@ -39,10 +39,10 @@ This is how you insert a vector of `KeyValue` pairs into the hash table and then
3939```cpp
4040 std::vector<KeyValue> things_to_insert = { {0,1}, {1,2}, {2,3}, {3,4} };
4141
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);
4646```
4747
4848After that runs, the vectors `things_to_insert` and `result` should be the same, but possibly in a different order.