6 #ifndef TURI_SERIALIZE_SET_HPP 7 #define TURI_SERIALIZE_SET_HPP 10 #include <core/storage/serialization/iarchive.hpp> 11 #include <core/storage/serialization/oarchive.hpp> 12 #include <core/storage/serialization/iterator.hpp> 15 namespace archive_detail {
17 template <
typename OutArcType,
typename T>
18 struct serialize_impl<OutArcType,
std::set<T>, false > {
19 static void exec(OutArcType& oarc,
const std::set<T>& vec){
21 vec.begin(), vec.end(), vec.size());
26 template <
typename InArcType,
typename T>
27 struct deserialize_impl<InArcType,
std::set<T>, false > {
28 static void exec(InArcType& iarc, std::set<T>& vec){
30 deserialize_iterator<InArcType, T>(iarc,
31 std::inserter(vec,vec.end()));
void serialize_iterator(OutArcType &oarc, RandomAccessIterator begin, RandomAccessIterator end)
Serializes the contents between the iterators begin and end.