1 #ifndef SERIALIZE_MAP_H 2 #define SERIALIZE_MAP_H 12 template <
class Map,
class Key,
class Value>
16 typedef typename Map::iterator iterator;
20 size_t size = m.size();
22 iterator it, end = m.end();
23 for (it=m.begin(); it != end; ++it){
31 size_t size = m.size();
33 iterator it, end = m.end();
34 for (it=m.begin(); it != end; ++it){
43 for (
int i=0; i < size; ++i){
57 template <
class Key,
class Value>
59 typedef std::map<Key,Value>
Map;
62 pvt::serialize_map<Map,Key,Value>(m,ser);
66 #if !SPKT_ENABLE_ORDERED_MAP 67 template <
class Key,
class Value>
69 typedef spkt_unordered_map<Key,Value>
Map;
72 pvt::serialize_map<Map,Key,Value>(m,ser);
79 #endif // SERIALIZE_MAP_H
std::map< Key, Value > Map
void operator()(Map &m, serializer &ser)
spkt_unordered_map< Key, Value > Map
void operator()(Map &m, 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_map(Map &m, serializer &ser)