#ifndef BOOST_CONTAINER_FLAT_SERIALIZERS_HPP_12323 #define BOOST_CONTAINER_FLAT_SERIALIZERS_HPP_12323 #include #include namespace boost{ namespace serialization{ // flat_map template inline void save(Archive & ar, const boost::container::flat_map &t, const unsigned int /* file_version */) { boost::serialization::stl::save_collection >(ar, t); } template inline void load(Archive & ar, boost::container::flat_map &t, const unsigned int /* file_version */){ load_map_collection(ar, t); } // split non-intrusive serialization function member into separate // non intrusive save/load member functions template inline void serialize(Archive & ar,boost::container::flat_map &t, const unsigned int file_version){ boost::serialization::split_free(ar, t, file_version); } //flat_set template inline void save(Archive & ar, const boost::container::flat_set &t, const unsigned int /* file_version */){ boost::serialization::stl::save_collection>(ar, t); } template inline void load(Archive & ar, boost::container::flat_set &t, const unsigned int /* file_version */){ load_set_collection(ar, t); } // split non-intrusive serialization function member into separate // non intrusive save/load member functions template inline void serialize( Archive & ar, boost::container::flat_set & t,const unsigned int file_version){ boost::serialization::split_free(ar, t, file_version); } }} #endif // BOOST_CONTAINER_FLAT_SERIALIZERS_HPP