This PR adds two new methods template<class Serializer> void serialize(Serializer& serializer) const; and template<class Deserializer> static sparse_map deserialize(Deserializer& deserializer, bool hash_compatible = false); to tsl::sparse_(pg)_map/set.
They take advantage of the internals of the data structure to provide an efficient way to serialize/deserialize the structure.
This PR adds two new methods
template<class Serializer> void serialize(Serializer& serializer) const;
andtemplate<class Deserializer> static sparse_map deserialize(Deserializer& deserializer, bool hash_compatible = false);
totsl::sparse_(pg)_map/set
.They take advantage of the internals of the data structure to provide an efficient way to serialize/deserialize the structure.
Fix feature request #2.