forked from boostorg/preprocessor
32 lines
760 B
HTML
32 lines
760 B
HTML
![]() |
<html>
|
||
|
<head>
|
||
|
<title>tuples.html</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../styles.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<h4>Tuples</h4>
|
||
|
<div>
|
||
|
A <i>tuple</i> is a simple comma-separated list of elements inside parenthesis.
|
||
|
For example,
|
||
|
</div>
|
||
|
<div class="code">
|
||
|
(<i>a</i>, <i>b</i>, <i>c</i>)
|
||
|
</div>
|
||
|
<div>
|
||
|
...is a <i>tuple</i> of <i>3</i> elements--<i>a</i>, <i>b</i>, and <i>c</i>.
|
||
|
</div>
|
||
|
<div>
|
||
|
<i>Tuples</i> are fast and easy to use.
|
||
|
However, all access to <i>tuples</i> requires knowledge of its size.
|
||
|
</div>
|
||
|
<div>
|
||
|
Elements of a <i>tuple</i> can be extracted with
|
||
|
<b>BOOST_PP_TUPLE_ELEM</b>.
|
||
|
</div>
|
||
|
<h4>Primitives</h4>
|
||
|
<ul>
|
||
|
<li><a href="../ref/tuple_elem.html">BOOST_PP_TUPLE_ELEM</a></li>
|
||
|
</ul>
|
||
|
</body>
|
||
|
</html>
|