Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / preprocessor / doc / data / tuples.html
1 <html>
2   <head>
3     <title>tuples.html</title>
4     <link rel="stylesheet" type="text/css" href="../styles.css">
5   </head>
6   <body>
7     <h4>Tuples</h4>
8     <div> A <i>tuple</i> is a simple comma-separated list of elements inside
9       parenthesis.&nbsp; For example, </div>
10     <div class="code"> (<i>a</i>, <i>b</i>, <i>c</i>) </div>
11     <div> ...is a <i>tuple</i> of <i>3</i> elements--<i>a</i>, <i>b</i>, and
12       <i>c</i>. </div>
13     <div> <i>Tuples</i> are fast and easy to use.&nbsp; With variadic macro
14       support it is not necessary to know the size of a <i>tuple; </i>without
15       variadic macro support&nbsp;all access to <i>tuples</i> requires
16       knowledge of its size. Use a <i>tuple </i>instead of an <i>array</i> if
17       your compiler supports variadic macros, since a <i>tuple </i>has all of
18       the functionality as an <i>array </i>and is easier syntactically to use.</div>
19     <div> Elements of a <i>tuple</i> can be extracted with <b>BOOST_PP_TUPLE_ELEM</b>.
20     </div>
21     <h4>Primitives</h4>
22     <ul>
23       <li><a href="../ref/tuple_elem.html">BOOST_PP_TUPLE_ELEM</a></li>
24     </ul>
25     <hr size="1">
26     <div style="margin-left: 0px;"> <i>© Copyright <a href="http://www.housemarque.com"
27           target="_top">Housemarque Oy</a> 2002</i> <br>
28       <i>© Copyright Paul Mensonides 2002</i> </div>
29     <div style="margin-left: 0px;">
30       <p><small>Distributed under the Boost Software License, Version 1.0. (See
31           accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
32           or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
33     </div>
34   </body>
35 </html>