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