Merge pull request #23 from gtarcoder/master

Added dump&&load interface for trivially_copyable types
This commit is contained in:
Gregory Popovitch
2019-08-25 09:15:07 -04:00
committed by GitHub
7 changed files with 450 additions and 2 deletions
+12
View File
@@ -1534,6 +1534,12 @@ public:
}
}
template<typename OutputArchive>
bool dump(OutputArchive&);
template<typename InputArchive>
bool load(InputArchive&);
void rehash(size_t n) {
if (n == 0 && capacity_ == 0) return;
if (n == 0 && size_ == 0) {
@@ -3141,6 +3147,12 @@ public:
a.swap(b);
}
template<typename OutputArchive>
bool dump(OutputArchive& ar);
template<typename InputArchive>
bool load(InputArchive& ar);
private:
template <class Container, typename Enabler>
friend struct phmap::container_internal::hashtable_debug_internal::HashtableDebugAccess;