]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/preprocessor/doc/ref/array_push_front.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / array_push_front.html
CommitLineData
7c673cae
FG
1<html>
2<head>
3 <title>BOOST_PP_ARRAY_PUSH_FRONT</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_ARRAY_PUSH_FRONT</b> macro appends an element to the beginning of an <i>array</i>.
9 </div>
10 <h4>Usage</h4>
11 <div class="code">
12 <b>BOOST_PP_ARRAY_PUSH_FRONT</b>(<i>array</i>, <i>elem</i>)
13 </div>
14 <h4>Arguments</h4>
15 <dl>
16 <dt>array</dt>
17 <dd>
18 The <i>array</i> to append an element to.
19 </dd>
20 <dt>elem</dt>
21 <dd>
22 The element to append.
23 </dd>
24 </dl>
25 <h4>Requirements</h4>
26 <div>
27 <b>Header:</b> &nbsp;<a href="../headers/array/push_front.html">&lt;boost/preprocessor/array/push_front.hpp&gt;</a>
28 </div>
29 <h4>Sample Code</h4>
30<div><pre>
31#include &lt;<a href="../headers/array/push_front.html">boost/preprocessor/array/push_front.hpp</a>&gt;
32
33#define ARRAY (3, (b, c, d))
34
35<a href="array_push_front.html">BOOST_PP_ARRAY_PUSH_FRONT</a>(ARRAY, a) // expands to (4, (a, b, c, d))
36</pre></div>
37 <hr size="1">
38 <div style="margin-left: 0px;">
39