###  | # Boost.Preprocessor ## Reference

Prev Next Macros Headers

# #include <boost/preprocessor/enum_shifted_params.hpp>

## #define BOOST_PP_ENUM_SHIFTED_PARAMS(N,P)

Generates a comma separated list of shifted actual parameters.

In other words, expands to the sequence:

      BOOST_PP_CAT(P,1), BOOST_PP_CAT(P,2), ..., BOOST_PP_CAT(P,BOOST_PP_DEC(N))

### Uses

- BOOST_PP_REPEAT()

### Rationale

- This macro facilitates a typical usage of the library. Shifted parameter lists are common in template metaprograms.

### Test

- repeat_2nd_test.cpp

## #define BOOST_PREPROCESSOR_ENUM_SHIFTED_PARAMS(N,P)

Obsolete. Use BOOST_PP_ENUM_SHIFTED_PARAMS().

Prev Next Macros Headers

Revised

© Copyright Housemarque Oy 2002

Permission to copy, use, modify, sell and distribute this document is granted provided this copyright notice appears in all copies. This document is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.