中间件底层,websocket

map.hpp 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //******************************************************************************
  2. // RCF - Remote Call Framework
  3. //
  4. // Copyright (c) 2005 - 2020, Delta V Software. All rights reserved.
  5. // http://www.deltavsoft.com
  6. //
  7. // RCF is distributed under dual licenses - closed source or GPL.
  8. // Consult your particular license for conditions of use.
  9. //
  10. // If you have not purchased a commercial license, you are using RCF
  11. // under GPL terms.
  12. //
  13. // Version: 3.2
  14. // Contact: support <at> deltavsoft.com
  15. //
  16. //******************************************************************************
  17. #ifndef INCLUDE_SF_MAP_HPP
  18. #define INCLUDE_SF_MAP_HPP
  19. #include <map>
  20. #include <SF/SerializeStl.hpp>
  21. #include <SF/utility.hpp>
  22. namespace SF {
  23. // std::map
  24. template<typename K, typename T1, typename T2, typename A>
  25. inline void serialize_vc6(Archive &ar, std::map<K,T1,T2,A> &t, const unsigned int)
  26. {
  27. serializeStlContainer<InsertSemantics, NoReserveSemantics>(ar, t);
  28. }
  29. // std::multimap
  30. template<typename K, typename T1, typename T2, typename A>
  31. inline void serialize_vc6(Archive &ar, std::multimap<K,T1,T2,A> &t, const unsigned int)
  32. {
  33. serializeStlContainer<InsertSemantics, NoReserveSemantics>(ar, t);
  34. }
  35. }
  36. #endif // ! INCLUDE_SF_MAP_HPP