24 #ifndef GRAPHLAB_SERIALIZE_LIST_HPP
25 #define GRAPHLAB_SERIALIZE_LIST_HPP
29 #include <graphlab/serialization/iarchive.hpp>
30 #include <graphlab/serialization/oarchive.hpp>
31 #include <graphlab/serialization/iterator.hpp>
35 namespace archive_detail {
37 template <
typename OutArcType,
typename T>
38 struct serialize_impl<OutArcType, std::list<T>, false > {
39 static void exec(OutArcType& oarc,
const std::list<T>& vec){
45 template <
typename InArcType,
typename T>
46 struct deserialize_impl<InArcType, std::list<T>, false > {
47 static void exec(InArcType& iarc, std::list<T>& vec){
49 deserialize_iterator<T>(iarc, std::inserter(vec,vec.end()));