2 // NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION
\r
4 // Copyright Peter Dimov 2000-2002
\r
5 // Copyright Aleksey Gurtovoy 2000-2004
\r
7 // Distributed under the Boost Software License, Version 1.0.
\r
8 // (See accompanying file LICENSE_1_0.txt or copy at
\r
9 // http://www.boost.org/LICENSE_1_0.txt)
\r
11 // See http://www.boost.org/libs/mpl for documentation.
\r
13 // $Id: numbered.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
14 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
15 // $Revision: 49267 $
\r
17 #if defined(BOOST_PP_IS_ITERATING)
\r
19 #include <boost/preprocessor/enum_params.hpp>
\r
20 #include <boost/preprocessor/enum_shifted_params.hpp>
\r
21 #include <boost/preprocessor/dec.hpp>
\r
22 #include <boost/preprocessor/cat.hpp>
\r
24 #define i BOOST_PP_FRAME_ITERATION(1)
\r
29 BOOST_PP_ENUM_PARAMS(i, typename T)
\r
43 # define MPL_AUX_LIST_TAIL(list, i, T) \
\r
44 BOOST_PP_CAT(list,BOOST_PP_DEC(i))< \
\r
45 BOOST_PP_ENUM_SHIFTED_PARAMS(i, T) \
\r
50 BOOST_PP_ENUM_PARAMS(i, typename T)
\r
52 struct BOOST_PP_CAT(list,i)
\r
56 , MPL_AUX_LIST_TAIL(list,i,T)
\r
59 typedef BOOST_PP_CAT(list,i) type;
\r
62 # undef MPL_AUX_LIST_TAIL
\r
68 #endif // BOOST_PP_IS_ITERATING
\r