Add binary dump/load cereal support for flat hash maps - Issue #120

This commit is contained in:
greg
2021-12-26 19:47:45 -05:00
parent f687729170
commit 870e6eb9b5
3 changed files with 203 additions and 99 deletions
+6 -6
View File
@@ -1577,12 +1577,12 @@ public:
}
}
#if !defined(PHMAP_NON_DETERMINISTIC) && !defined(PHMAP_DISABLE_DUMP)
#if !defined(PHMAP_NON_DETERMINISTIC)
template<typename OutputArchive>
bool dump(OutputArchive&) const;
bool phmap_dump(OutputArchive&) const;
template<typename InputArchive>
bool load(InputArchive&);
bool phmap_load(InputArchive&);
#endif
void rehash(size_t n) {
@@ -3367,12 +3367,12 @@ public:
return HashElement{hash_ref()}(key);
}
#if !defined(PHMAP_NON_DETERMINISTIC) && !defined(PHMAP_DISABLE_DUMP)
#if !defined(PHMAP_NON_DETERMINISTIC)
template<typename OutputArchive>
bool dump(OutputArchive& ar) const;
bool phmap_dump(OutputArchive& ar) const;
template<typename InputArchive>
bool load(InputArchive& ar);
bool phmap_load(InputArchive& ar);
#endif
private: