Remote Call Framework 3.4
deque.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2023, Delta V Software. All rights reserved.
6 // https://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF under GPL terms.
12 //
13 // Version: 3.4
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_SF_DEQUE_HPP
19 #define INCLUDE_SF_DEQUE_HPP
20 
21 #include <deque>
22 
23 #include <SF/SerializeStl.hpp>
24 
25 namespace SF {
26 
27  // std::deque is not guaranteed to use contiguous storage, so even if T
28  // is a fundamental type, we can't do fast memcpy-style serialization, as
29  // we do for std::vector.
30 
31  // std::deque
32  template<typename T, typename A>
33  inline void serialize_vc6(SF::Archive &ar, std::deque<T,A> &t, const unsigned int)
34  {
35  serializeStlContainer<PushBackSemantics, NoReserveSemantics>(ar, t);
36  }
37 
38 } // namespace SF
39 
40 #endif // ! INCLUDE_SF_DEQUE_HPP
Represents an archive, in which serialized objects are stored.
Definition: Archive.hpp:31
Definition: ByteBuffer.hpp:188