中间件底层,websocket

set.hpp 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_SET_HPP
  18. #define INCLUDE_SF_SET_HPP
  19. #include <set>
  20. #include <SF/SerializeStl.hpp>
  21. namespace SF {
  22. // std::set
  23. template<typename K, typename T, typename A>
  24. inline void serialize_vc6(SF::Archive &ar, std::set<K,T,A> &t, const unsigned int)
  25. {
  26. serializeStlContainer<InsertSemantics, NoReserveSemantics>(ar, t);
  27. }
  28. // std::multiset
  29. template<typename K, typename T, typename A>
  30. inline void serialize_vc6(SF::Archive &ar, std::multiset<K,T,A> &t, const unsigned int)
  31. {
  32. serializeStlContainer<InsertSemantics, NoReserveSemantics>(ar, t);
  33. }
  34. } // namespace SF
  35. #endif // ! INCLUDE_SF_SET_HPP