1 #ifndef BOOST_SERIALIZATION_UNORDERED_SET_HPP 2 #define BOOST_SERIALIZATION_UNORDERED_SET_HPP 5 #if defined(_MSC_VER) && (_MSC_VER >= 1020) 20 #include <unordered_set> 21 #include <boost/config.hpp> 25 #include <boost/serialization/split_free.hpp> 28 namespace serialization {
33 template<
class Archive,
class Container>
41 typedef BOOST_DEDUCED_TYPENAME Container::value_type type;
42 detail::stack_construct<Archive, type> t(ar, v);
44 ar >> boost::serialization::make_nvp(
"item", t.reference());
45 std::pair<BOOST_DEDUCED_TYPENAME Container::const_iterator, bool> result =
46 s.insert(t.reference());
48 ar.reset_object_address(& (* result.first), & t.reference());
53 template<
class Archive,
class Container>
61 typedef BOOST_DEDUCED_TYPENAME Container::value_type type;
62 detail::stack_construct<Archive, type> t(ar, v);
64 ar >> boost::serialization::make_nvp(
"item", t.reference());
65 BOOST_DEDUCED_TYPENAME Container::const_iterator result
66 = s.insert(t.reference());
67 ar.reset_object_address(& (* result), & t.reference());
83 const std::unordered_set<
84 Key, HashFcn, EqualKey, Allocator
92 Key, HashFcn, EqualKey, Allocator
108 Key, HashFcn, EqualKey, Allocator
116 Key, HashFcn, EqualKey, Allocator
122 Key, HashFcn, EqualKey, Allocator
141 Key, HashFcn, EqualKey, Allocator
143 const unsigned int file_version
145 boost::serialization::split_free(ar, t, file_version);
159 const std::unordered_multiset<
160 Key, HashFcn, EqualKey, Allocator
167 std::unordered_multiset<
168 Key, HashFcn, EqualKey, Allocator
183 std::unordered_multiset<
184 Key, HashFcn, EqualKey, Allocator
191 std::unordered_multiset<
192 Key, HashFcn, EqualKey, Allocator
197 std::unordered_multiset<
198 Key, HashFcn, EqualKey, Allocator
216 std::unordered_multiset<
217 Key, HashFcn, EqualKey, Allocator
219 const unsigned int file_version
221 boost::serialization::split_free(ar, t, file_version);
227 #endif // BOOST_SERIALIZATION_UNORDERED_SET_HPP
void save(Archive &ar, const std::unordered_map< Key, HashFcn, EqualKey, Allocator > &t, const unsigned int)
void load(Archive &ar, std::unordered_map< Key, HashFcn, EqualKey, Allocator > &t, const unsigned int)
void serialize(Archive &ar, std::unordered_map< Key, HashFcn, EqualKey, Allocator > &t, const unsigned int file_version)
void save_unordered_collection(Archive &ar, const Container &s)
void load_unordered_collection(Archive &ar, Container &s)