1 #ifndef BOOST_SERIALIZATION_UNORDEREDMAP_HPP
2 #define BOOST_SERIALIZATION_UNORDEREDMAP_HPP
5 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
20 #include <boost/unordered_map.hpp>
22 #include <boost/config.hpp>
24 #include <boost/serialization/utility.hpp>
25 #include <boost/serialization/collections_save_imp.hpp>
26 #include <boost/serialization/collections_load_imp.hpp>
27 #include <boost/serialization/split_free.hpp>
30 namespace serialization {
32 template<
class Archive,
class Type,
class Key,
class Hash,
class Compare,
class Allocator >
35 const boost::unordered_map<Key, Type, Hash, Compare, Allocator> &t,
38 boost::serialization::stl::save_collection<
40 boost::unordered_map<Key, Type, Hash, Compare, Allocator>
44 template<
class Archive,
class Type,
class Key,
class Hash,
class Compare,
class Allocator >
47 boost::unordered_map<Key, Type, Hash, Compare, Allocator> &t,
50 boost::serialization::stl::load_collection<
52 boost::unordered_map<Key, Type, Hash, Compare, Allocator>,
53 boost::serialization::stl::archive_input_map<
54 Archive, boost::unordered_map<Key, Type, Hash, Compare, Allocator> >,
55 boost::serialization::stl::no_reserve_imp<boost::unordered_map<
56 Key, Type, Hash, Compare, Allocator>
63 template<
class Archive,
class Type,
class Key,
class Hash,
class Compare,
class Allocator >
66 boost::unordered_map<Key, Type, Hash, Compare, Allocator> &t,
67 const unsigned int file_version
69 boost::serialization::split_free(ar, t, file_version);
74 #endif // BOOST_SERIALIZATION_UNORDEREDMAP_HPP
void load(Archive &ar, boost::unordered_map< Key, Type, Hash, Compare, Allocator > &t, const unsigned int)
Definition: unordered_map.h:45
void save(Archive &ar, const boost::unordered_map< Key, Type, Hash, Compare, Allocator > &t, const unsigned int)
Definition: unordered_map.h:33
void serialize(Archive &ar, boost::unordered_map< Key, Type, Hash, Compare, Allocator > &t, const unsigned int file_version)
Definition: unordered_map.h:64