Rodin/Serialization/FlatMap.h file

boost::serialization support for boost::container::flat_map.

Functions

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

Function documentation

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

Saves a flat map to an archive.

Template parameters
Archive Archive type.
Key Map key type.
T Map mapped value type.
Compare Key comparison type.
Allocator Allocator type.
Parameters
ar Archive used for serialization.
map Flat map to save.
version Serialization version.

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

Loads a flat map from an archive.

Template parameters
Archive Archive type.
Key Map key type.
T Map mapped value type.
Compare Key comparison type.
Allocator Allocator type.
Parameters
ar Archive used for serialization.
map Flat map to load.
version Serialization version.

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

Serializes a flat map through split save/load functions.

Template parameters
Archive Archive type.
Key Map key type.
T Map mapped value type.
Compare Key comparison type.
Allocator Allocator type.
Parameters
ar Archive used for serialization.
map Flat map to serialize.
version Serialization version.