]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/preprocessor/doc/ref/seq_subseq.html
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / seq_subseq.html
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> &nbsp;<a href="../headers/seq/subseq.html">&lt;boost/preprocessor/seq/subseq.hpp&gt;</a>
44 </div>
45 <h4>
46 Sample Code
47 </h4>
48 <div>
49 <pre>
50 #include &lt;<a href="../headers/seq/subseq.html">boost/preprocessor/seq/subseq.hpp</a>&gt;
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 <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
60 </br><i>© Copyright Paul Mensonides 2002</i>
61 </div>
62 <div style="margin-left: 0px;">
63 <p><small>Distributed under the Boost Software License, Version 1.0. (See
64 accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
65 copy at <a href=
66 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
67 </div>
68 </body>
69 </html>