os/ossrv/ossrv_pub/boost_apis/boost/mpl/copy.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/mpl/copy.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,58 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_COPY_HPP_INCLUDED
     1.6 +#define BOOST_MPL_COPY_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2000-2004
     1.9 +// Copyright David Abrahams 2003-2004
    1.10 +//
    1.11 +// Distributed under the Boost Software License, Version 1.0. 
    1.12 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.13 +// http://www.boost.org/LICENSE_1_0.txt)
    1.14 +//
    1.15 +// See http://www.boost.org/libs/mpl for documentation.
    1.16 +
    1.17 +// $Source: /cvsroot/boost/boost/boost/mpl/copy.hpp,v $
    1.18 +// $Date: 2004/09/02 15:40:41 $
    1.19 +// $Revision: 1.5 $
    1.20 +
    1.21 +#include <boost/mpl/fold.hpp>
    1.22 +#include <boost/mpl/reverse_fold.hpp>
    1.23 +#include <boost/mpl/aux_/inserter_algorithm.hpp>
    1.24 +
    1.25 +namespace boost { namespace mpl {
    1.26 +
    1.27 +namespace aux {
    1.28 +
    1.29 +template<
    1.30 +      typename Sequence
    1.31 +    , typename Inserter
    1.32 +    >
    1.33 +struct copy_impl
    1.34 +    : fold< 
    1.35 +          Sequence
    1.36 +        , typename Inserter::state
    1.37 +        , typename Inserter::operation
    1.38 +        >
    1.39 +{
    1.40 +};
    1.41 +
    1.42 +template<
    1.43 +      typename Sequence
    1.44 +    , typename Inserter
    1.45 +    >
    1.46 +struct reverse_copy_impl
    1.47 +    : reverse_fold<
    1.48 +          Sequence
    1.49 +        , typename Inserter::state
    1.50 +        , typename Inserter::operation
    1.51 +        >
    1.52 +{
    1.53 +};
    1.54 +
    1.55 +} // namespace aux
    1.56 +
    1.57 +BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(2, copy)
    1.58 +
    1.59 +}}
    1.60 +
    1.61 +#endif // BOOST_MPL_COPY_HPP_INCLUDED