]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <html> |
2 | <head> | |
3 | <title>BOOST_PP_SEQ_SUBSEQ</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_SUBSEQ</b> macro expands to a subseq of elements in a <i>seq</i>. | |
9 | </div> | |
10 | <h4> | |
11 | Usage | |
12 | </h4> | |
13 | <div class="code"> | |
14 | <b>BOOST_PP_SEQ_SUBSEQ</b>(<i>seq</i>, <i>i</i>, <i>len</i>) | |
15 | </div> | |
16 | <h4> | |
17 | Arguments | |
18 | </h4> | |
19 | <dl> | |
20 | <dt>seq</dt> | |
21 | <dd> | |
22 | The <i>seq</i> whose size is to be calculated. | |
23 | </dd> | |
24 | <dt>i</dt> | |
25 | <dd> | |
26 | The index of the first element of the subseq to be extracted. | |
27 | </dd> | |
28 | <dt>len</dt> | |
29 | <dd> | |
30 | The length of the subseq to be extracted. | |
31 | </dd> | |
32 | </dl> | |
33 | <h4> | |
34 | Remarks | |
35 | </h4> | |
36 | <div> | |
37 | This macro expands to a <i>seq</i> extracted from <i>seq</i>. | |
38 | </div> | |
39 | <h4> | |
40 | Requirements | |
41 | </h4> | |
42 | <div> | |
43 | <b>Header:</b> <a href="../headers/seq/subseq.html"><boost/preprocessor/seq/subseq.hpp></a> | |
44 | </div> | |
45 | <h4> | |
46 | Sample Code | |
47 | </h4> | |
48 | <div> | |
49 | <pre> | |
50 | #include <<a href="../headers/seq/subseq.html">boost/preprocessor/seq/subseq.hpp</a>> | |
51 | ||
52 | #define SEQ (0)(1)(2)(3)(4)(5) | |
53 | ||
54 | <a href="seq_subseq.html">BOOST_PP_SEQ_SUBSEQ</a>(SEQ, 2, 3) // expands to (2)(3)(4) | |
55 | </pre> | |
56 | </div> | |
57 | <hr size="1"> | |
58 | <div style="margin-left: 0px;"> | |
59 |