]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/preprocessor/doc/ref/list_cat.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / list_cat.html
CommitLineData
7c673cae
FG
1<html>
2<head>
3 <title>BOOST_PP_LIST_CAT</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_LIST_CAT</b> macro concatenates all elements in a <i>list</i>.
9 </div>
10 <h4>Usage</h4>
11 <div class="code">
12 <b>BOOST_PP_LIST_CAT</b>(<i>list</i>)
13 </div>
14 <h4>Arguments</h4>
15 <dl>
16 <dt>list</dt>
17 <dd>
18 The <i>list</i> whose elements are to be concatenated.
19 </dd>
20 </dl>
21 <h4>Remarks</h4>
22 <div>
23 Elements are concatenated left-to-right starting with index <i>0</i>.
24 </div>
25 <div>
26 Previously, this macro could not be used inside <b>BOOST_PP_WHILE</b>.&nbsp;
27 There is no longer any such restriction.&nbsp;
28 It is more efficient, however, to use <b>BOOST_PP_LIST_CAT_D</b> in such a situation.
29 </div>
30 <h4>See Also</h4>
31 <ul>
32 <li><a href="list_cat_d.html">BOOST_PP_LIST_CAT_D</a></li>
33 </ul>
34 <h4>Requirements</h4>
35 <div>
36 <b>Header:</b> &nbsp;<a href="../headers/list/cat.html">&lt;boost/preprocessor/list/cat.hpp&gt;</a>
37 </div>
38 <h4>Sample Code</h4>
39<div><pre>
40#include &lt;<a href="../headers/list/cat.html">boost/preprocessor/list/cat.hpp</a>&gt;
41
42#define LIST (a, (b, (c, <a href="nil.html">BOOST_PP_NIL</a>)))
43
44<a href="list_cat.html">BOOST_PP_LIST_CAT</a>(LIST) // expands to abc
45</pre></div>
46 <hr size="1">
47 <div style="margin-left: 0px;">
48