中间件底层,websocket

deque.hpp 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_DEQUE_HPP
  18. #define INCLUDE_SF_DEQUE_HPP
  19. #include <deque>
  20. #include <SF/SerializeStl.hpp>
  21. namespace SF {
  22. // std::deque is not guaranteed to use contiguous storage, so even if T
  23. // is a fundamental type, we can't do fast memcpy-style serialization, as
  24. // we do for std::vector.
  25. // std::deque
  26. template<typename T, typename A>
  27. inline void serialize_vc6(SF::Archive &ar, std::deque<T,A> &t, const unsigned int)
  28. {
  29. serializeStlContainer<PushBackSemantics, NoReserveSemantics>(ar, t);
  30. }
  31. } // namespace SF
  32. #endif // ! INCLUDE_SF_DEQUE_HPP