...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
BOOST_PROTO_REPEAT — Repeatedly invoke the specified macro.
// In header: <boost/proto/repeat.hpp>
BOOST_PROTO_REPEAT(MACRO)
BOOST_PROTO_REPEAT()
is used to generate the kind of repetitive
code that is typical of DSELs built with Proto.
BOOST_PROTO_REPEAT(
is equivalent to:
MACRO
)
MACRO
(1, BOOST_PROTO_typename_A, BOOST_PROTO_A_const_ref, BOOST_PROTO_A_const_ref_a, BOOST_PROTO_ref_a)MACRO
(2, BOOST_PROTO_typename_A, BOOST_PROTO_A_const_ref, BOOST_PROTO_A_const_ref_a, BOOST_PROTO_ref_a) ...MACRO
(BOOST_PROTO_MAX_ARITY, BOOST_PROTO_typename_A, BOOST_PROTO_A_const_ref, BOOST_PROTO_A_const_ref_a, BOOST_PROTO_ref_a)
Example:
See BOOST_PROTO_REPEAT_FROM_TO()
.