]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/preprocessor/doc/ref/list_to_seq.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / list_to_seq.html
1 <html>
2 <head>
3 <meta content="text/html; charset=windows-1252" http-equiv="content-type">
4 <title>BOOST_PP_LIST_TO_SEQ</title>
5 <link rel="stylesheet" type="text/css" href="../styles.css">
6 </head>
7 <body>
8 <div style="margin-left: 0px;"> The <b>BOOST_PP_LIST_TO_SEQ</b> macro
9 converts a <i>list</i> to a <i>seq</i>. </div>
10 <h4> Usage </h4>
11 <div class="code"> <b>BOOST_PP_LIST_TO_SEQ</b>(<i>list</i>) </div>
12 <h4> Arguments </h4>
13 <dl>
14 <dt>list</dt>
15 <dd> The <i>list</i> to be converted. </dd>
16 </dl>
17 <h4>Remarks</h4>
18 <div> This macro uses <b>BOOST_PP_FOR</b>. Within <b>BOOST_PP_FOR</b>, it
19 is more efficient to use <b>BOOST_PP_LIST_TO_SEQ_R</b>.<br>
20 <br>
21 If the <i>list</i> to be converted is empty, as represented by
22 'BOOST_PP_NIL', the resulting <i>seq</i> is undefined since a <i>seq</i>
23 cannot be empty.</div>
24 <h4>See Also</h4>
25 <ul>
26 <li><a href="list_to_seq_r.html">BOOST_PP_LIST_TO_SEQ_R</a></li>
27 </ul>
28 <h4> Requirements </h4>
29 <div> <b>Header:</b> &nbsp;<a href="../headers/list/to_seq.html">&lt;boost/preprocessor/list/to_seq.hpp&gt;</a>
30 </div>
31 <h4> Sample Code </h4>
32 <div>
33 <pre>#include &lt;<a href="../headers/list/to_seq.html">boost/preprocessor/list/to_seq.hpp</a>&gt;<br><br><a
34 href="list_to_seq.html">BOOST_PP_LIST_TO_SEQ</a>((a, (b, (c, <a href="nil.html">BOOST_PP_NIL</a>)))) // expands to (a)(b)(c)</pre>
35 </div>
36 <hr size="1">
37 <div style="margin-left: 0px;"> <i>© Copyright Edward Diener 2011</i> </div>
38 <div style="margin-left: 0px;">
39 <p><small>Distributed under the Boost Software License, Version 1.0. (See
40 accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
41 or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
42 </div>
43 </body>
44 </html>