serialize_ptr_deque.hpp 733 B

123456789101112131415161718192021222324252627
  1. // Copyright Sebastian Ramacher, 2007.
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_PTR_CONTAINER_SERIALIZE_PTR_DEQUE_HPP
  6. #define BOOST_PTR_CONTAINER_SERIALIZE_PTR_DEQUE_HPP
  7. #include <boost/ptr_container/detail/serialize_reversible_cont.hpp>
  8. #include <boost/ptr_container/ptr_deque.hpp>
  9. namespace boost
  10. {
  11. namespace serialization
  12. {
  13. template<class Archive, class T, class CloneAllocator, class Allocator>
  14. void serialize(Archive& ar, ptr_deque<T, CloneAllocator, Allocator>& c, const unsigned int version)
  15. {
  16. core::split_free(ar, c, version);
  17. }
  18. } // namespace serialization
  19. } // namespace boost
  20. #endif