中间件底层,websocket

unordered_set.hpp 1.4KB

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_SET_HPP
  18. #define INCLUDE_SF_UNORDERED_SET_HPP
  19. #include <RCF/Config.hpp>
  20. #ifdef RCF_USE_TR1
  21. #include RCF_TR1_HEADER(unordered_set)
  22. #include <SF/SerializeStl.hpp>
  23. namespace SF {
  24. // std::tr1::unordered_set
  25. template<typename Key, typename Hash, typename Pred, typename Alloc>
  26. inline void serialize_vc6(Archive &ar, std::tr1::unordered_set<Key,Hash,Pred,Alloc> &t, const unsigned int)
  27. {
  28. serializeStlContainer<InsertSemantics, NoReserveSemantics>(ar, t);
  29. }
  30. // std::tr1::unordered_multiset
  31. template<typename Key, typename Hash, typename Pred, typename Alloc>
  32. inline void serialize_vc6(Archive &ar, std::tr1::unordered_multiset<Key,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_SET_HPP