Pack required boost code together.
[xy_vsfilter.git] / src / thirdparty / boost_1_47_0 / boost / mpl / aux_ / preprocessed / bcc / advance_forward.hpp
blob1424fc176cd14fc14769336fcf315358d67cff36
2 // Copyright Aleksey Gurtovoy 2000-2004
3 //
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
9 // *Preprocessed* version of the main "advance_forward.hpp" header
10 // -- DO NOT modify by hand!
12 namespace boost { namespace mpl { namespace aux {
14 template< long N > struct advance_forward;
15 template<>
16 struct advance_forward<0>
18 template< typename Iterator > struct apply
20 typedef Iterator iter0;
21 typedef iter0 type;
25 template<>
26 struct advance_forward<1>
28 template< typename Iterator > struct apply
30 typedef Iterator iter0;
31 typedef typename next<iter0>::type iter1;
32 typedef iter1 type;
36 template<>
37 struct advance_forward<2>
39 template< typename Iterator > struct apply
41 typedef Iterator iter0;
42 typedef typename next<iter0>::type iter1;
43 typedef typename next<iter1>::type iter2;
44 typedef iter2 type;
48 template<>
49 struct advance_forward<3>
51 template< typename Iterator > struct apply
53 typedef Iterator iter0;
54 typedef typename next<iter0>::type iter1;
55 typedef typename next<iter1>::type iter2;
56 typedef typename next<iter2>::type iter3;
57 typedef iter3 type;
61 template<>
62 struct advance_forward<4>
64 template< typename Iterator > struct apply
66 typedef Iterator iter0;
67 typedef typename next<iter0>::type iter1;
68 typedef typename next<iter1>::type iter2;
69 typedef typename next<iter2>::type iter3;
70 typedef typename next<iter3>::type iter4;
71 typedef iter4 type;
75 template< long N >
76 struct advance_forward
78 template< typename Iterator > struct apply
80 typedef typename apply_wrap1<
81 advance_forward<4>
82 , Iterator
83 >::type chunk_result_;
85 typedef typename apply_wrap1<
86 advance_forward<(
87 (N - 4) < 0
88 ? 0
89 : N - 4
91 , chunk_result_
92 >::type type;
96 }}}