2 // Copyright Aleksey Gurtovoy 2000-2004
\r
4 // Distributed under the Boost Software License, Version 1.0.
\r
5 // (See accompanying file LICENSE_1_0.txt or copy at
\r
6 // http://www.boost.org/LICENSE_1_0.txt)
\r
9 // Preprocessed version of "boost/mpl/aux_/fold_impl.hpp" header
\r
10 // -- DO NOT modify by hand!
\r
12 namespace boost { namespace mpl { namespace aux {
\r
14 /// forward declaration
\r
21 , typename ForwardOp
\r
29 , typename ForwardOp
\r
31 struct fold_impl< 0,First,Last,State,ForwardOp >
\r
33 typedef First iter0;
\r
34 typedef State state0;
\r
35 typedef state0 state;
\r
36 typedef iter0 iterator;
\r
43 , typename ForwardOp
\r
45 struct fold_impl< 1,First,Last,State,ForwardOp >
\r
47 typedef First iter0;
\r
48 typedef State state0;
\r
49 typedef typename apply2< ForwardOp, state0, typename deref<iter0>::type >::type state1;
\r
50 typedef typename mpl::next<iter0>::type iter1;
\r
53 typedef state1 state;
\r
54 typedef iter1 iterator;
\r
61 , typename ForwardOp
\r
63 struct fold_impl< 2,First,Last,State,ForwardOp >
\r
65 typedef First iter0;
\r
66 typedef State state0;
\r
67 typedef typename apply2< ForwardOp, state0, typename deref<iter0>::type >::type state1;
\r
68 typedef typename mpl::next<iter0>::type iter1;
\r
69 typedef typename apply2< ForwardOp, state1, typename deref<iter1>::type >::type state2;
\r
70 typedef typename mpl::next<iter1>::type iter2;
\r
73 typedef state2 state;
\r
74 typedef iter2 iterator;
\r
81 , typename ForwardOp
\r
83 struct fold_impl< 3,First,Last,State,ForwardOp >
\r
85 typedef First iter0;
\r
86 typedef State state0;
\r
87 typedef typename apply2< ForwardOp, state0, typename deref<iter0>::type >::type state1;
\r
88 typedef typename mpl::next<iter0>::type iter1;
\r
89 typedef typename apply2< ForwardOp, state1, typename deref<iter1>::type >::type state2;
\r
90 typedef typename mpl::next<iter1>::type iter2;
\r
91 typedef typename apply2< ForwardOp, state2, typename deref<iter2>::type >::type state3;
\r
92 typedef typename mpl::next<iter2>::type iter3;
\r
95 typedef state3 state;
\r
96 typedef iter3 iterator;
\r
103 , typename ForwardOp
\r
105 struct fold_impl< 4,First,Last,State,ForwardOp >
\r
107 typedef First iter0;
\r
108 typedef State state0;
\r
109 typedef typename apply2< ForwardOp, state0, typename deref<iter0>::type >::type state1;
\r
110 typedef typename mpl::next<iter0>::type iter1;
\r
111 typedef typename apply2< ForwardOp, state1, typename deref<iter1>::type >::type state2;
\r
112 typedef typename mpl::next<iter1>::type iter2;
\r
113 typedef typename apply2< ForwardOp, state2, typename deref<iter2>::type >::type state3;
\r
114 typedef typename mpl::next<iter2>::type iter3;
\r
115 typedef typename apply2< ForwardOp, state3, typename deref<iter3>::type >::type state4;
\r
116 typedef typename mpl::next<iter3>::type iter4;
\r
119 typedef state4 state;
\r
120 typedef iter4 iterator;
\r
128 , typename ForwardOp
\r
141 ( (N - 4) < 0 ? 0 : N - 4 )
\r
142 , typename chunk_::iterator
\r
144 , typename chunk_::state
\r
148 typedef typename res_::state state;
\r
149 typedef typename res_::iterator iterator;
\r
156 , typename ForwardOp
\r
158 struct fold_impl< -1,First,Last,State,ForwardOp >
\r
161 , typename mpl::next<First>::type
\r
163 , typename apply2<ForwardOp,State, typename deref<First>::type>::type
\r
172 , typename ForwardOp
\r
174 struct fold_impl< -1,Last,Last,State,ForwardOp >
\r
176 typedef State state;
\r
177 typedef Last iterator;
\r