Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / preprocessor / doc / ref / tuple_push_front.html
1 <html>
2   <head>
3     <meta content="text/html; charset=windows-1252" http-equiv="content-type">
4     <title>BOOST_PP_TUPLE_PUSH_FRONT</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_TUPLE_PUSH_FRONT</b> macro
9       appends an element to the beginning of a <i>tuple</i>.</div>
10     <h4>Usage</h4>
11     <div class="code"> <b>BOOST_PP_TUPLE_PUSH_FRONT</b>(<i>tuple</i>, <i>elem</i>)
12       <a href="../topics/variadic_macros.html#VNotation"><sup>(v)</sup></a></div>
13     <h4>Arguments</h4>
14     <dl>
15       <dt>tuple</dt>
16       <dd> The <i>tuple</i> to append an element to.</dd>
17       <dt>elem</dt>
18       <dd> The element to append. </dd>
19     </dl>
20     <h4>Requirements</h4>
21     <div> <b>Header:</b> &nbsp;<a href="../headers/tuple/push_front.html">&lt;boost/preprocessor/tuple/push_front.hpp&gt;</a>
22     </div>
23     <h4>Sample Code</h4>
24     <div>
25       <pre>#include &lt;<a href="../headers/tuple/push_front.html">boost/preprocessor/tuple/push_front.hpp</a>&gt;
26
27 #define TUPLE (b, c, d)
28
29 <a href="tuple_push_front.html">BOOST_PP_TUPLE_PUSH_FRONT</a>(TUPLE, a) // expands to (a, b, c, d)
30 </pre></div>
31     <hr size="1">
32     <div style="margin-left: 0px;"> <i>© Copyright Edward Diener 2013</i> </div>
33     <div style="margin-left: 0px;">
34       <p><small>Distributed under the Boost Software License, Version 1.0. (See
35           accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
36           or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
37     </div>
38   </body>
39 </html>