12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef BOOST_SERIALIZATION_HASH_COLLECTIONS_LOAD_IMP_HPP
- #define BOOST_SERIALIZATION_HASH_COLLECTIONS_LOAD_IMP_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1020)
- # pragma once
- # pragma warning (disable : 4786)
- #endif
- #include <boost/config.hpp>
- #include <boost/serialization/nvp.hpp>
- #include <boost/serialization/collections_load_imp.hpp>
- namespace boost{
- namespace serialization {
- namespace stl {
- template<class Archive, class Container, class InputFunction>
- inline void load_hash_collection(Archive & ar, Container &s)
- {
- s.clear();
-
- unsigned int count;
- unsigned int item_version(0);
- unsigned int bucket_count;;
- ar >> BOOST_SERIALIZATION_NVP(count);
- if(3 < ar.get_library_version()){
- ar >> BOOST_SERIALIZATION_NVP(bucket_count);
- ar >> BOOST_SERIALIZATION_NVP(item_version);
- }
- #if ! defined(__MWERKS__)
- s.resize(bucket_count);
- #endif
- InputFunction ifunc;
- while(count-- > 0){
- ifunc(ar, s, item_version);
- }
- }
- }
- }
- }
- #endif
|