中间件底层,websocket

hash_map.hpp 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_HASH_MAP_HPP
  18. #define INCLUDE_SF_HASH_MAP_HPP
  19. #include <RCF/Config.hpp>
  20. #ifdef RCF_USE_HASH_MAP
  21. #define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
  22. #include RCF_HASH_MAP_HEADER(hash_map)
  23. #include <SF/SerializeStl.hpp>
  24. namespace SF {
  25. // hash_map
  26. template<typename Key, typename Value, typename Hash, typename Alloc>
  27. inline void serialize_vc6(Archive &ar, RCF_HASH_MAP_NS::hash_map<Key, Value, Hash, Alloc> &t, const unsigned int)
  28. {
  29. serializeStlContainer<InsertSemantics, NoReserveSemantics>(ar, t);
  30. }
  31. // hash_multimap
  32. template<typename Key, typename Value, typename Hash, typename Alloc>
  33. inline void serialize_vc6(Archive &ar, RCF_HASH_MAP_NS::hash_multimap<Key, Value, Hash, Alloc> &t, const unsigned int)
  34. {
  35. serializeStlContainer<InsertSemantics, NoReserveSemantics>(ar, t);
  36. }
  37. }
  38. #endif // RCF_USE_HASH_MAP
  39. #endif // ! INCLUDE_SF_HASH_MAP_HPP