1 #ifndef SERIALIZE_LIST_H 2 #define SERIALIZE_LIST_H 12 template <
class Container,
class T>
15 typedef typename Container::iterator iterator;
19 size_t size = v.size();
21 iterator it, end = v.end();
22 for (it=v.begin(); it != end; ++it){
29 size_t size = v.size();
31 iterator it, end = v.end();
32 for (it=v.begin(); it != end; ++it){
41 for (
int i=0; i < size; ++i){
59 pvt::serialize_container<List,T>(v,ser);
65 typedef std::deque<T>
DQ;
69 pvt::serialize_container<DQ,T>(v,ser);
76 #endif // SERIALIZE_LIST_H
void operator()(List &v, serializer &ser)
void operator()(DQ &v, serializer &ser)
SERIALIZE_MODE mode() const
This class is basically a wrapper for objects to declare the order in which their members should be s...
void serialize_container(Container &v, serializer &ser)