os/ossrv/ossrv_pub/boost_apis/boost/serialization/deque.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/serialization/deque.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,75 @@
     1.4 +#ifndef  BOOST_SERIALIZATION_DEQUE_HPP
     1.5 +#define BOOST_SERIALIZATION_DEQUE_HPP
     1.6 +
     1.7 +// MS compatible compilers support #pragma once
     1.8 +#if defined(_MSC_VER) && (_MSC_VER >= 1020)
     1.9 +# pragma once
    1.10 +#endif
    1.11 +
    1.12 +/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
    1.13 +// deque.hpp
    1.14 +
    1.15 +// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . 
    1.16 +// Use, modification and distribution is subject to the Boost Software
    1.17 +// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
    1.18 +// http://www.boost.org/LICENSE_1_0.txt)
    1.19 +
    1.20 +//  See http://www.boost.org for updates, documentation, and revision history.
    1.21 +
    1.22 +#include <deque>
    1.23 +
    1.24 +#include <boost/config.hpp>
    1.25 +
    1.26 +#include <boost/serialization/collections_save_imp.hpp>
    1.27 +#include <boost/serialization/collections_load_imp.hpp>
    1.28 +#include <boost/serialization/split_free.hpp>
    1.29 +
    1.30 +namespace boost { 
    1.31 +namespace serialization {
    1.32 +
    1.33 +template<class Archive, class U, class Allocator>
    1.34 +inline void save(
    1.35 +    Archive & ar,
    1.36 +    const std::deque<U, Allocator> &t,
    1.37 +    const unsigned int /* file_version */
    1.38 +){
    1.39 +    boost::serialization::stl::save_collection<
    1.40 +        Archive, std::deque<U, Allocator> 
    1.41 +    >(ar, t);
    1.42 +}
    1.43 +
    1.44 +template<class Archive, class U, class Allocator>
    1.45 +inline void load(
    1.46 +    Archive & ar,
    1.47 +    std::deque<U, Allocator> &t,
    1.48 +    const unsigned int file_version
    1.49 +){
    1.50 +    boost::serialization::stl::load_collection<
    1.51 +        Archive,
    1.52 +        std::deque<U, Allocator>,
    1.53 +        boost::serialization::stl::archive_input_seq<
    1.54 +        Archive, std::deque<U, Allocator> 
    1.55 +        >,
    1.56 +        boost::serialization::stl::no_reserve_imp<std::deque<U, Allocator> >
    1.57 +    >(ar, t);
    1.58 +}
    1.59 +
    1.60 +// split non-intrusive serialization function member into separate
    1.61 +// non intrusive save/load member functions
    1.62 +template<class Archive, class U, class Allocator>
    1.63 +inline void serialize(
    1.64 +    Archive & ar,
    1.65 +    std::deque<U, Allocator> &t,
    1.66 +    const unsigned int file_version
    1.67 +){
    1.68 +    boost::serialization::split_free(ar, t, file_version);
    1.69 +}
    1.70 +
    1.71 +} // namespace serialization
    1.72 +} // namespace boost
    1.73 +
    1.74 +#include <boost/serialization/collection_traits.hpp>
    1.75 +
    1.76 +BOOST_SERIALIZATION_COLLECTION_TRAITS(std::deque)
    1.77 +
    1.78 +#endif // BOOST_SERIALIZATION_DEQUE_HPP