1<html> 2<head> 3 <title>BOOST_PP_ARRAY_ELEM</title> 4 <link rel="stylesheet" type="text/css" href="../styles.css"> 5</head> 6<body> 7 <div style="margin-left: 0px;"> 8 The <b>BOOST_PP_ARRAY_ELEM</b> macro extracts an element from a <i>array</i>. 9 </div> 10 <h4>Usage</h4> 11 <div class="code"> 12 <b>BOOST_PP_ARRAY_ELEM</b>(<i>i</i>, <i>array</i>) 13 </div> 14 <h4>Arguments</h4> 15 <dl> 16 <dt>i</dt> 17 <dd> 18 The zero-based index into the <i>array</i> of the element to be extracted. 19 </dd> 20 <dt>array</dt> 21 <dd> 22 The <i>array</i> from which an element is to be extracted. 23 This <i>array</i> must contain at least <i>i</i> + <i>1</i> elements. 24 </dd> 25 </dl> 26 <h4>Requirements</h4> 27 <div> 28 <b>Header:</b> <a href="../headers/array/elem.html"><boost/preprocessor/array/elem.hpp></a> 29 </div> 30 <h4>Sample Code</h4> 31<div><pre> 32#include <<a href="../headers/array/elem.html">boost/preprocessor/array/elem.hpp</a>> 33 34#define ARRAY (4, (a, b, c, d)) 35 36<a href="array_elem.html">BOOST_PP_ARRAY_ELEM</a>(0, ARRAY) // expands to a 37<a href="array_elem.html">BOOST_PP_ARRAY_ELEM</a>(3, ARRAY) // expands to d 38</pre></div> 39 <hr size="1"> 40 <div style="margin-left: 0px;"> 41 <i>� Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i> 42 </br><i>� Copyright Paul Mensonides 2002</i> 43 </div> 44 <div style="margin-left: 0px;"> 45 <p><small>Distributed under the Boost Software License, Version 1.0. (See 46 accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or 47 copy at <a href= 48 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p> 49 </div> 50</body> 51</html> 52