24 #ifndef GRAPHLAB_SERIALIZE_MAP_HPP
25 #define GRAPHLAB_SERIALIZE_MAP_HPP
28 #include <graphlab/serialization/iarchive.hpp>
29 #include <graphlab/serialization/oarchive.hpp>
30 #include <graphlab/serialization/iterator.hpp>
34 namespace archive_detail {
36 template <
typename OutArcType,
typename T,
typename U>
37 struct serialize_impl<OutArcType, std::map<T,U>, false > {
38 static void exec(OutArcType& oarc,
const std::map<T,U>& vec){
40 vec.begin(), vec.end(), vec.size());
46 template <
typename InArcType,
typename T,
typename U>
47 struct deserialize_impl<InArcType, std::map<T,U>, false > {
48 static void exec(InArcType& iarc, std::map<T,U>& vec){
51 std::pair<T,U> >(iarc,
52 std::inserter(vec,vec.end()));