24 #ifndef GRAPHLAB_SERIALIZE_SET_HPP
25 #define GRAPHLAB_SERIALIZE_SET_HPP
28 #include <graphlab/serialization/iarchive.hpp>
29 #include <graphlab/serialization/oarchive.hpp>
30 #include <graphlab/serialization/iterator.hpp>
33 namespace archive_detail {
35 template <
typename OutArcType,
typename T>
36 struct serialize_impl<OutArcType, std::set<T>, false > {
37 static void exec(OutArcType& oarc,
const std::set<T>& vec){
39 vec.begin(), vec.end(), vec.size());
44 template <
typename InArcType,
typename T>
45 struct deserialize_impl<InArcType, std::set<T>, false > {
46 static void exec(InArcType& iarc, std::set<T>& vec){
48 deserialize_iterator<InArcType, T>(iarc,
49 std::inserter(vec,vec.end()));