24 #ifndef GRAPHLAB_SERIALIZE_UNORDERED_SET_HPP
25 #define GRAPHLAB_SERIALIZE_UNORDERED_SET_HPP
27 #include <boost/unordered_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, boost::unordered_set<T>, false > {
37 static void exec(OutArcType& oarc,
const boost::unordered_set<T>& vec){
39 vec.begin(), vec.end(), vec.size());
44 template <
typename InArcType,
typename T>
45 struct deserialize_impl<InArcType, boost::unordered_set<T>, false > {
46 static void exec(InArcType& iarc, boost::unordered_set<T>& vec){
52 for (
size_t x = 0; x < length ; ++x){