1 #ifndef SERIALIZE_SET_H 2 #define SERIALIZE_SET_H 12 template <
class Set,
class T>
15 typedef typename Set::iterator iterator;
19 size_t size = v.size();
21 iterator it, end = v.end();
22 for (it=v.begin(); it != end; ++it){
23 T& t =
const_cast<T&
>(*it);
29 size_t size = v.size();
31 iterator it, end = v.end();
32 for (it=v.begin(); it != end; ++it){
33 T& t =
const_cast<T&
>(*it);
41 for (
int i=0; i < size; ++i){
55 typedef std::set<T>
Set;
59 pvt::serialize_set<Set,T>(v,ser);
63 #if !SPKT_ENABLE_ORDERED_MAP 66 typedef spkt_unordered_set<T>
Set;
70 pvt::serialize_set<Set,T>(v,ser);
77 #endif // SERIALIZE_SET_H
void operator()(Set &v, serializer &ser)
void operator()(Set &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_set(Set &v, serializer &ser)
spkt_unordered_set< T > Set