Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:57:25

0001 
0002 #ifndef BOOST_MPL_COPY_HPP_INCLUDED
0003 #define BOOST_MPL_COPY_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2000-2004
0006 // Copyright David Abrahams 2003-2004
0007 //
0008 // Distributed under the Boost Software License, Version 1.0. 
0009 // (See accompanying file LICENSE_1_0.txt or copy at 
0010 // http://www.boost.org/LICENSE_1_0.txt)
0011 //
0012 // See http://www.boost.org/libs/mpl for documentation.
0013 
0014 // $Id$
0015 // $Date$
0016 // $Revision$
0017 
0018 #include <boost/mpl/fold.hpp>
0019 #include <boost/mpl/reverse_fold.hpp>
0020 #include <boost/mpl/aux_/inserter_algorithm.hpp>
0021 
0022 namespace boost { namespace mpl {
0023 
0024 namespace aux {
0025 
0026 template<
0027       typename Sequence
0028     , typename Inserter
0029     >
0030 struct copy_impl
0031     : fold< 
0032           Sequence
0033         , typename Inserter::state
0034         , typename Inserter::operation
0035         >
0036 {
0037 };
0038 
0039 template<
0040       typename Sequence
0041     , typename Inserter
0042     >
0043 struct reverse_copy_impl
0044     : reverse_fold<
0045           Sequence
0046         , typename Inserter::state
0047         , typename Inserter::operation
0048         >
0049 {
0050 };
0051 
0052 } // namespace aux
0053 
0054 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(2, copy)
0055 
0056 }}
0057 
0058 #endif // BOOST_MPL_COPY_HPP_INCLUDED