simplify load/dump code. Also don't close the archibe after dump/load, we may need to save multiple hash maps in one archive.

This commit is contained in:
greg
2019-08-25 14:55:46 -04:00
parent 2ff7c0fce7
commit 77ef910921
2 changed files with 26 additions and 87 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ void dump_load_parallel_flat_hash_map() {
mp2.load(ar_in);
}
for (const auto& n : mp2)
for (const auto& n : mp2)
std::cout << "key: " << n.first << ", value: " << n.second << "\n";
}