minor change and add comment

This commit is contained in:
Gregory Popovitch
2023-05-30 08:22:17 -04:00
committed by GitHub
parent 875d5e48e5
commit 07e93a8d91
+2 -1
View File
@@ -91,7 +91,8 @@ bool raw_hash_set<Policy, Hash, Eq, Alloc>::phmap_load(InputArchive& ar) {
return true; return true;
ar.loadBinary(ctrl_, sizeof(ctrl_t) * (capacity_ + Group::kWidth + 1)); ar.loadBinary(ctrl_, sizeof(ctrl_t) * (capacity_ + Group::kWidth + 1));
ar.loadBinary(slots_, sizeof(slot_type) * capacity_); ar.loadBinary(slots_, sizeof(slot_type) * capacity_);
if (version == s_version_base) { if (version >= s_version_base) {
// growth_left should be restored after calling initialize_slots() which resets it.
ar.loadBinary(&growth_left(), sizeof(size_t)); ar.loadBinary(&growth_left(), sizeof(size_t));
} }
return true; return true;