|
Boost.PreprocessorHeader <boost/preprocessor/repeat.hpp> |
Repeats the macro MACRO(INDEX,DATA)
for INDEX = [0,COUNT)
.
In other words, expands to the sequence:
MACRO(0,DATA) MACRO(1,DATA) ... MACRO(BOOST_PP_DEC(COUNT),DATA)
For example,
#define TEST(INDEX,DATA) DATA(INDEX); BOOST_PP_REPEAT(3,TEST,X)
expands to:
X(0); X(1); X(2);
BOOST_PP_REPEAT() implements automatic recursion. 2D and 3D repetition are directly supported.
Obsolete, just use BOOST_PP_REPEAT().
Obsolete, just use BOOST_PP_REPEAT().
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.