1 #ifndef BOOST_SERIALIZATION_UNORDERED_COLLECTIONS_LOAD_IMP_HPP 2 #define BOOST_SERIALIZATION_UNORDERED_COLLECTIONS_LOAD_IMP_HPP 5 #if defined(_MSC_VER) && (_MSC_VER >= 1020) 7 # pragma warning (disable : 4786) // too long name, harmless warning 23 #include <boost/assert.hpp> 25 #include <boost/config.hpp> 26 #if defined(BOOST_NO_STDC_NAMESPACE) 31 #include <boost/detail/workaround.hpp> 33 #include <boost/archive/detail/basic_iarchive.hpp> 34 #include <boost/serialization/access.hpp> 35 #include <boost/serialization/nvp.hpp> 36 #include <boost/serialization/detail/stack_constructor.hpp> 37 #include <boost/serialization/collection_size_type.hpp> 38 #include <boost/serialization/item_version_type.hpp> 41 namespace serialization {
47 template<
class Archive,
class Container,
class InputFunction>
51 collection_size_type count;
52 collection_size_type bucket_count;
53 boost::serialization::item_version_type item_version(0);
54 boost::archive::library_version_type library_version(
55 ar.get_library_version()
58 ar >> BOOST_SERIALIZATION_NVP(count);
59 ar >> BOOST_SERIALIZATION_NVP(bucket_count);
60 if(boost::archive::library_version_type(3) < library_version){
61 ar >> BOOST_SERIALIZATION_NVP(item_version);
63 s.rehash(bucket_count);
66 ifunc(ar, s, item_version);
74 #endif //BOOST_SERIALIZATION_UNORDERED_COLLECTIONS_LOAD_IMP_HPP
void load_unordered_collection(Archive &ar, Container &s)