The BOOST_PP_SEQ_FOR_EACH_I_R macro repeats a macro for each element in
a seq. It reenters BOOST_PP_FOR with maximum efficiency.
Usage
BOOST_PP_SEQ_FOR_EACH_I_R(r, macro, data, seq)
Arguments
r
The next available BOOST_PP_FOR repetition.
macro
A macro of the form macro(r, data, i, elem).
This macro is expanded by BOOST_PP_SEQ_FOR_EACH_I with each element in seq.
It is expanded with the next available BOOST_PP_FOR repetition, the
auxiliary data, the index of the current element, and the current
element.
data
Auxiliary data passed to macro.
seq
The seq for which macro will be invoked on each element.
Remarks
This macro is a repetition construct. If seq is (a)(b)(c),
it expands to the sequence:
macro(r, data, 0, a) macro(r, data,
1, b) macro(r, data, 2, c)