• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2  <head>
3    <meta content="text/html; charset=windows-1252" http-equiv="content-type">
4    <title>BOOST_PP_ARRAY_TO_TUPLE</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_ARRAY_TO_TUPLE</b> macro
9      converts an <i>array</i> to an <i>tuple</i>. </div>
10    <h4> Usage </h4>
11    <div class="code"> <b>BOOST_PP_ARRAY_TO_TUPLE</b>(<i>array</i>) </div>
12    <h4> Arguments </h4>
13    <dl>
14      <dt>array</dt>
15      <dd> The <i>array</i> to be converted.</dd>
16    </dl>
17    <h4>Remarks</h4>
18    <p>&nbsp;&nbsp;&nbsp; If the <i>array</i> to be converted is empty, as
19      represented by '( 0, () )', the resulting <i>tuple</i> is undefined
20      since a <i>tuple</i> cannot be empty.</p>
21    <h4>Requirements </h4>
22    <div> <b>Header:</b> &nbsp;<a href="../headers/array/to_tuple.html">&lt;boost/preprocessor/array/to_tuple.hpp&gt;</a>
23    </div>
24    <h4> Sample Code </h4>
25    <div>
26      <pre>#include &lt;<a href="../headers/array/to_tuple.html">boost/preprocessor/array/to_tuple.hpp</a>&gt;<br><br>#define ARRAY (3,(a, b, c))<br><br><a
27
28href="array_to_tuple.html">BOOST_PP_ARRAY_TO_TUPLE</a>(ARRAY) // expands to (a, b, c)</pre>
29    </div>
30    <hr size="1">
31    <div style="margin-left: 0px;"> <i></i><i>� Copyright Edward Diener 2011</i>
32    </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>
40