]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <html> |
2 | <head> | |
3 | <title>BOOST_PP_SEQ_FOR_EACH_PRODUCT_R</title> | |
4 | <link rel="stylesheet" type="text/css" href="../styles.css"> | |
5 | </head> | |
6 | <body> | |
7 | <div style="margin-left: 0px;"> | |
8 | The <b>BOOST_PP_SEQ_FOR_EACH_PRODUCT_R</b> macro repeats a macro for each | |
9 | cartesian product of several <i>seqs</i>. It reenters <b>BOOST_PP_FOR</b> | |
10 | with maximum efficiency. | |
11 | </div> | |
12 | <h4> | |
13 | Usage | |
14 | </h4> | |
15 | <div class="code"> | |
16 | <b>BOOST_PP_SEQ_FOR_EACH_PRODUCT_R</b>(<i>r</i>, <i>macro</i>, <i>seqs</i>) | |
17 | </div> | |
18 | <h4> | |
19 | Arguments | |
20 | </h4> | |
21 | <dl> | |
22 | <dt>r</dt> | |
23 | <dd> | |
24 | The next available <b>BOOST_PP_FOR</b> repetition. | |
25 | </dd> | |
26 | <dt>macro</dt> | |
27 | <dd> | |
28 | The binary macro of the form <i>macro</i>(<i>r</i>, <i>product</i>). This | |
29 | macro is expanded by <b>BOOST_PP_FOR_EACH_PRODUCT</b> with each cartesian | |
30 | product in <i>seqs</i>. It is expanded with the next available <b>BOOST_PP_FOR</b> | |
31 | repetition and a <i>seq</i> containing a cartesian product. | |
32 | </dd> | |
33 | <dt>seqs</dt> | |
34 | <dd> | |
35 | A <i>seq</i> of <i>seqs</i> from which cartesian products are obtained. | |
36 | </dd> | |
37 | </dl> | |
38 | <h4> | |
39 | Remarks | |
40 | </h4> | |
41 | <div> | |
42 | This macro is a repetition construct. If two <i>seqs</i> are (<i>a</i>)(<i>b</i>)(<i>c</i>) | |
43 | and (<i>x</i>)(<i>y</i>)(<i>z</i>), this macro will produce the following | |
44 | sequence: | |
45 | <div> | |
46 | <i>macro</i>(<i>r</i>, (<i>a</i>)(<i>x</i>)) <i>macro</i>(<i>r</i>, (<i>a</i>)(<i>y</i>)) | |
47 | <i>macro</i>(<i>r</i>, (<i>a</i>)(<i>z</i>)) \ | |
48 | <br> | |
49 | <i>macro</i>(<i>r</i>, (<i>b</i>)(<i>x</i>)) <i>macro</i>(<i>r</i>, (<i>b</i>)(<i>y</i>)) | |
50 | <i>macro</i>(<i>r</i>, (<i>b</i>)(<i>z</i>)) \ | |
51 | <br> | |
52 | <i>macro</i>(<i>r</i>, (<i>c</i>)(<i>x</i>)) <i>macro</i>(<i>r</i>, (<i>c</i>)(<i>y</i>)) | |
53 | <i>macro</i>(<i>r</i>, (<i>c</i>)(<i>z</i>)) | |
54 | </div> | |
55 | </div> | |
56 | <h4> | |
57 | See Also | |
58 | </h4> | |
59 | <ul> | |
60 | <li> | |
61 | <a href="seq_for_each_product.html">BOOST_PP_SEQ_FOR_EACH_PRODUCT</a></li> | |
62 | </ul> | |
63 | <h4> | |
64 | Requirements | |
65 | </h4> | |
66 | <div> | |
67 | <b>Header:</b> <a href="../headers/seq/for_each_product.html"><boost/preprocessor/seq/for_each_product.hpp></a> | |
68 | </div> | |
69 | <hr size="1"> | |
70 | <div style="margin-left: 0px;"> | |
71 |