mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 00:50:38 +08:00
Merge pull request #23 from gtarcoder/master
Added dump&&load interface for trivially_copyable types
This commit is contained in:
Vendored
+12
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user