Rodin/Serialization/FlatSet.h file

boost::serialization support for boost::container::flat_set.

Functions

template<class Archive, typename T, typename Compare, typename Allocator>
void save(Archive& ar, const boost::container::flat_set<T, Compare, Allocator>& s, const unsigned int version)
Saves a flat set to an archive.
template<class Archive, typename T, typename Compare, typename Allocator>
void load(Archive& ar, boost::container::flat_set<T, Compare, Allocator>& s, const unsigned int version)
Loads a flat set from an archive.
template<class Archive, typename T, typename Compare, typename Allocator>
void serialize(Archive& ar, boost::container::flat_set<T, Compare, Allocator>& s, const unsigned int version)
Serializes a flat set through split save/load functions.

Function documentation

template<class Archive, typename T, typename Compare, typename Allocator>
void save(Archive& ar, const boost::container::flat_set<T, Compare, Allocator>& s, const unsigned int version)

Saves a flat set to an archive.

Template parameters
Archive Archive type.
T Set value type.
Compare Value comparison type.
Allocator Allocator type.
Parameters
ar Archive used for serialization.
s Flat set to save.
version Serialization version.

template<class Archive, typename T, typename Compare, typename Allocator>
void load(Archive& ar, boost::container::flat_set<T, Compare, Allocator>& s, const unsigned int version)

Loads a flat set from an archive.

Template parameters
Archive Archive type.
T Set value type.
Compare Value comparison type.
Allocator Allocator type.
Parameters
ar Archive used for serialization.
s Flat set to load.
version Serialization version.

template<class Archive, typename T, typename Compare, typename Allocator>
void serialize(Archive& ar, boost::container::flat_set<T, Compare, Allocator>& s, const unsigned int version)

Serializes a flat set through split save/load functions.

Template parameters
Archive Archive type.
T Set value type.
Compare Value comparison type.
Allocator Allocator type.
Parameters
ar Archive used for serialization.
s Flat set to serialize.
version Serialization version.