The BOOST_PP_SET_FOR_EACH_R macro repeats a macro for each element in a set.  It reenters BOOST_PP_FOR with maximum efficiency.

Usage

BOOST_PP_SET_FOR_EACH_R(r, macro, data, set)

Arguments

r
The next available BOOST_PP_FOR repetition.
macro
A ternary macro of the form macro(r, data, elem).  This macro is expanded by BOOST_PP_SET_FOR_EACH with each element in set.  It is expanded with the next available BOOST_PP_FOR repetition, the auxiliary data, and the current element.
data
Auxiliary data passed to macro.
set
The set for which macro will be invoked on each element.

Remarks

This macro is a repetition construct.  If set is (a)(b)(c), it expands to the sequence:
macro(r, data, a) macro(r, data, b) macro(r, data, c)

See Also

Requirements

Header:  <boost/preprocessor/set/for_each.hpp>