中间件底层,websocket

unordered_map.hpp 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_UNORDERED_MAP_HPP
  18. #define INCLUDE_SF_UNORDERED_MAP_HPP
  19. #include <RCF/Config.hpp>
  20. #ifdef RCF_USE_TR1
  21. #include RCF_TR1_HEADER(unordered_map)
  22. #include <SF/SerializeStl.hpp>
  23. namespace SF {
  24. // std::tr1::unordered_map
  25. template<typename Key, typename Value, typename Hash, typename Pred, typename Alloc>
  26. inline void serialize_vc6(Archive &ar, std::tr1::unordered_map<Key, Value, Hash, Pred, Alloc> &t, const unsigned int)
  27. {
  28. serializeStlContainer<InsertSemantics, NoReserveSemantics>(ar, t);
  29. }
  30. // std::tr1::unordered_multimap
  31. template<typename Key, typename Value, typename Hash, typename Pred, typename Alloc>
  32. inline void serialize_vc6(Archive &ar, std::tr1::unordered_multimap<Key, Value, Hash, Pred, Alloc> &t, const unsigned int)
  33. {
  34. serializeStlContainer<InsertSemantics, NoReserveSemantics>(ar, t);
  35. }
  36. }
  37. #endif // RCF_USE_TR1
  38. #endif // ! INCLUDE_SF_UNORDERED_MAP_HPP