1 #ifndef BOOST_SERIALIZATION_HASH_MAP_HPP
2 #define BOOST_SERIALIZATION_HASH_MAP_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 // serialization/hash_map.hpp:
11 // serialization for stl hash_map templates
13 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
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_HASH_MAP_HEADER
24 #include <boost/serialization/utility.hpp>
25 #include <boost/serialization/hash_collections_save_imp.hpp>
26 #include <boost/serialization/hash_collections_load_imp.hpp>
27 #include <boost/serialization/split_free.hpp>
30 namespace serialization
{
41 const BOOST_STD_EXTENSION_NAMESPACE::hash_map
<
42 Key
, HashFcn
, EqualKey
, Allocator
44 const unsigned int file_version
46 boost::serialization::stl::save_hash_collection
<
48 BOOST_STD_EXTENSION_NAMESPACE::hash_map
<
49 Key
, HashFcn
, EqualKey
, Allocator
63 BOOST_STD_EXTENSION_NAMESPACE::hash_map
<
64 Key
, HashFcn
, EqualKey
, Allocator
66 const unsigned int file_version
68 boost::serialization::stl::load_hash_collection
<
70 BOOST_STD_EXTENSION_NAMESPACE::hash_map
<
71 Key
, HashFcn
, EqualKey
, Allocator
73 boost::serialization::stl::archive_input_map
<
75 BOOST_STD_EXTENSION_NAMESPACE::hash_map
<
76 Key
, HashFcn
, EqualKey
, Allocator
82 // split non-intrusive serialization function member into separate
83 // non intrusive save/load member functions
91 inline void serialize(
93 BOOST_STD_EXTENSION_NAMESPACE::hash_map
<
94 Key
, HashFcn
, EqualKey
, Allocator
96 const unsigned int file_version
98 boost::serialization::split_free(ar
, t
, file_version
);
111 const BOOST_STD_EXTENSION_NAMESPACE::hash_multimap
<
112 Key
, HashFcn
, EqualKey
, Allocator
114 const unsigned int file_version
116 boost::serialization::stl::save_hash_collection
<
118 BOOST_STD_EXTENSION_NAMESPACE::hash_multimap
<
119 Key
, HashFcn
, EqualKey
, Allocator
133 BOOST_STD_EXTENSION_NAMESPACE::hash_multimap
<
134 Key
, HashFcn
, EqualKey
, Allocator
136 const unsigned int file_version
138 boost::serialization::stl::load_hash_collection
<
140 BOOST_STD_EXTENSION_NAMESPACE::hash_multimap
<
141 Key
, HashFcn
, EqualKey
, Allocator
143 boost::serialization::stl::archive_input_multimap
<
145 BOOST_STD_EXTENSION_NAMESPACE::hash_multimap
<
146 Key
, HashFcn
, EqualKey
, Allocator
152 // split non-intrusive serialization function member into separate
153 // non intrusive save/load member functions
161 inline void serialize(
163 BOOST_STD_EXTENSION_NAMESPACE::hash_multimap
<
164 Key
, HashFcn
, EqualKey
, Allocator
166 const unsigned int file_version
168 boost::serialization::split_free(ar
, t
, file_version
);
171 } // namespace serialization
174 #endif // BOOST_HAS_HASH
175 #endif // BOOST_SERIALIZATION_HASH_MAP_HPP