|
Boost.PreprocessorReference |
Iterates F(D,P,X)
for each element X
of the
list L
(from the left or the start of the list).
In other words, expands to:
F ( D , ... F(D, F(D,P,BOOST_PP_LIST_AT(L,0)), BOOST_PP_LIST_AT(L,1)) ... , BOOST_PP_LIST_AT(L,BOOST_PP_DEC(BOOST_PP_LIST_SIZE(L)) )
For example,
#define TEST(D,P,X) BOOST_PP_CAT(P,X) BOOST_PP_LIST_FOLD_LEFT(TEST,_,BOOST_PP_TUPLE_TO_LIST(3,(A,B,C)))
expands to:
_ABC
Can be used inside BOOST_PP_WHILE().
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.