1 #ifndef BOOST_SERIALIZATION_BOOST_UNORDERED_SET_HPP
2 #define BOOST_SERIALIZATION_BOOST_UNORDERED_SET_HPP
4 // MS compatible compilers support #pragma once
5 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // unordered_set.hpp: serialization for boost unordered_set templates
12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
13 // (C) Copyright 2014 Jim Bell
14 // Use, modification and distribution is subject to the Boost Software
15 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
16 // http://www.boost.org/LICENSE_1_0.txt)
18 // See http://www.boost.org for updates, documentation, and revision history.
20 #include <boost/config.hpp>
22 #include <boost/unordered_set.hpp>
24 #include <boost/serialization/unordered_collections_save_imp.hpp>
25 #include <boost/serialization/unordered_collections_load_imp.hpp>
26 #include <boost/serialization/archive_input_unordered_set.hpp>
27 #include <boost/serialization/split_free.hpp>
30 namespace serialization {
41 const boost::unordered_set<Key, HashFcn, EqualKey, Allocator> &t,
42 const unsigned int /*file_version*/
44 boost::serialization::stl::save_unordered_collection<
46 boost::unordered_set<Key, HashFcn, EqualKey, Allocator>
59 boost::unordered_set<Key, HashFcn, EqualKey, Allocator> &t,
60 const unsigned int /*file_version*/
62 boost::serialization::stl::load_unordered_collection<
64 boost::unordered_set<Key, HashFcn, EqualKey, Allocator>,
65 boost::serialization::stl::archive_input_unordered_set<
67 boost::unordered_set<Key, HashFcn, EqualKey, Allocator>
72 // split non-intrusive serialization function member into separate
73 // non intrusive save/load member functions
81 inline void serialize(
83 boost::unordered_set<Key, HashFcn, EqualKey, Allocator> &t,
84 const unsigned int file_version
86 boost::serialization::split_free(ar, t, file_version);
99 const boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator> &t,
100 const unsigned int /*file_version*/
102 boost::serialization::stl::save_unordered_collection<
104 boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator>
117 boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator> &t,
118 const unsigned int /*file_version*/
120 boost::serialization::stl::load_unordered_collection<
122 boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator>,
123 boost::serialization::stl::archive_input_unordered_multiset<
125 boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator>
130 // split non-intrusive serialization function member into separate
131 // non intrusive save/load member functions
139 inline void serialize(
141 boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator> &t,
142 const unsigned int file_version
144 boost::serialization::split_free(ar, t, file_version);
147 } // namespace serialization
150 #endif // BOOST_SERIALIZATION_BOOST_UNORDERED_SET_HPP