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