C++ Boost

Boost.Preprocessor

Header <boost/preprocessor/enum_params.hpp>


Prev Next Macros Headers

#define BOOST_PP_ENUM_PARAMS(COUNT,PARAM)

Generates a comma separated list of parameters.

In other words, expands to the sequence:

BOOST_PP_CAT(PARAM,0), BOOST_PP_CAT(PARAM,1), ..., BOOST_PP_CAT(PARAM,BOOST_PP_DEC(COUNT))

For example,

BOOST_PP_ENUM_PARAMS(3,x)

expands to:

x0, x1, x2

Uses

Test


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.