4 #if !defined(BOOST_PP_IS_ITERATING)
31 # define AUX778076_ITER_FOLD_STEP(unused, i, unused2) \
32 typedef typename apply2< \
34 , BOOST_PP_CAT(state,i) \
35 , AUX778076_FOLD_IMPL_OP(BOOST_PP_CAT(iter,i)) \
36 >::type BOOST_PP_CAT(state,BOOST_PP_INC(i)); \
37 typedef typename mpl::next<BOOST_PP_CAT(iter,i)>::type \
38 BOOST_PP_CAT(iter,BOOST_PP_INC(i)); \
41 # define AUX778076_FOLD_IMPL_NAME \
42 BOOST_PP_CAT(AUX778076_FOLD_IMPL_NAME_PREFIX,_impl) \
45 # define AUX778076_FOLD_CHUNK_NAME \
46 BOOST_PP_CAT(AUX778076_FOLD_IMPL_NAME_PREFIX,_chunk) \
49 namespace boost {
namespace mpl {
namespace aux {
61 #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
63 # if !BOOST_WORKAROUND(__BORLANDC__, < 0x600)
65 # define BOOST_PP_ITERATION_PARAMS_1 \
66 (3,(0, BOOST_MPL_LIMIT_UNROLLING, <boost/mpl/aux_/fold_impl_body.hpp>))
67 # include BOOST_PP_ITERATE()
109 , typename mpl::next<First>::type
111 , typename apply2<ForwardOp,State,AUX778076_FOLD_IMPL_OP(First)>::type
128 # else // BOOST_WORKAROUND(__BORLANDC__, < 0x600)
145 ,
typename apply2<ForwardOp,State,AUX778076_FOLD_IMPL_OP(First)>
::type
167 # endif // BOOST_WORKAROUND(__BORLANDC__, < 0x600)
169 #else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
171 template< BOOST_MPL_AUX_NTTP_DECL(
int, N) >
174 # define BOOST_PP_ITERATION_PARAMS_1 \
175 (3,(0, BOOST_MPL_LIMIT_UNROLLING, <boost/mpl/aux_/fold_impl_body.hpp>))
176 # include BOOST_PP_ITERATE()
179 template< BOOST_MPL_AUX_NTTP_DECL(
int, N) >
200 ,
typename chunk_::iterator
202 ,
typename chunk_::state
206 typedef typename res_::state state;
207 typedef typename res_::iterator iterator;
218 struct BOOST_PP_CAT(AUX778076_FOLD_IMPL_NAME_PREFIX,_step);
224 struct BOOST_PP_CAT(AUX778076_FOLD_IMPL_NAME_PREFIX,_null_step)
226 typedef Last iterator;
241 typedef typename if_<
243 ,
BOOST_PP_CAT(AUX778076_FOLD_IMPL_NAME_PREFIX,_null_step)<Last,State>
244 ,
BOOST_PP_CAT(AUX778076_FOLD_IMPL_NAME_PREFIX,_step)<First,Last,State,ForwardOp>
247 typedef typename res_::state state;
248 typedef typename res_::iterator iterator;
251 #if defined(BOOST_MPL_CFG_MSVC_60_ETI_BUG)
252 template<>
struct result_<int,int,int,int>
256 typedef int iterator;
267 struct BOOST_PP_CAT(AUX778076_FOLD_IMPL_NAME_PREFIX,_step)
273 ,
typename apply2<ForwardOp,State,AUX778076_FOLD_IMPL_OP(First)>::type
277 typedef typename chunk_::state state;
278 typedef typename chunk_::iterator iterator;
290 ::template result_<First,Last,State,ForwardOp>
294 #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
298 # undef AUX778076_FOLD_IMPL_NAME
299 # undef AUX778076_FOLD_CHUNK_NAME
300 # undef AUX778076_ITER_FOLD_STEP
302 #undef AUX778076_FOLD_IMPL_OP
303 #undef AUX778076_FOLD_IMPL_NAME_PREFIX
309 # define n_ BOOST_PP_FRAME_ITERATION(1)
311 #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
322 typedef State state0;
343 typedef State state0;
351 #if defined(BOOST_MPL_CFG_MSVC_60_ETI_BUG)
352 template<>
struct result_<int,int,int,int>
356 typedef int iterator;
361 #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
365 #endif // BOOST_PP_IS_ITERATING