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">
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>
11 <div class=
"code"> <b>BOOST_PP_ARRAY_TO_TUPLE
</b>(
<i>array
</i>)
</div>
15 <dd> The
<i>array
</i> to be converted.
</dd>
18 <p> 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> <a href=
"../headers/array/to_tuple.html"><boost/preprocessor/array/to_tuple.hpp
></a>
24 <h4> Sample Code
</h4>
26 <pre>#include
<<a href=
"../headers/array/to_tuple.html">boost/preprocessor/array/to_tuple.hpp
</a>><br><br>#define ARRAY (
3,(a, b, c))
<br><br><a
28 href=
"array_to_tuple.html">BOOST_PP_ARRAY_TO_TUPLE
</a>(ARRAY) // expands to (a, b, c)
</pre>
31 <div style=
"margin-left: 0px;"> <i></i><i>© Copyright Edward Diener
2011</i>
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>