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
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
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 }
0053
0054 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(2, copy)
0055
0056 }}
0057
0058 #endif