3 <title>BOOST_PP_LIST_AT_D
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_LIST_AT_D
</b> macro extracts an element in a
<i>list
</i>.
9 It reenters
<b>BOOST_PP_WHILE
</b> with maximum efficiency.
13 <b>BOOST_PP_LIST_AT_D
</b>(
<i>d
</i>,
<i>list
</i>,
<i>index
</i>)
19 The next available
<b>BOOST_PP_WHILE
</b> iteration.
23 The
<i>list
</i> from which a element is to be extracted.
24 This
<i>list
</i> must have at least
<i>index
</i> +
<i>1</i> elements.
28 The zero-based position in the
<i>list
</i> of the element to be extracted.
33 <li><a href=
"list_at.html">BOOST_PP_LIST_AT
</a></li>
37 <b>Header:
</b> <a href=
"../headers/list/at.html"><boost/preprocessor/list/at.hpp
></a>
41 #include
<<a href=
"../headers/control/while.html">boost/preprocessor/control/while.hpp
</a>>
42 #include
<<a href=
"../headers/list/at.html">boost/preprocessor/list/at.hpp
</a>>
44 #define LIST (
7, (
2, (
0, (
1,
<a href=
"nil.html">BOOST_PP_NIL
</a>))))
46 #define PRED(d, state)
<a href=
"list_at_d.html">BOOST_PP_LIST_AT_D
</a>(d, state,
0)
47 #define OP(d, state)
<a href=
"list_rest.html">BOOST_PP_LIST_REST
</a>(state)
49 <a href=
"while.html">BOOST_PP_WHILE
</a>(PRED, OP, LIST) // expands to (
0, (
1,
<a href=
"nil.html">BOOST_PP_NIL
</a>))
52 <div style=
"margin-left: 0px;">
53 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
54 </br><i>© Copyright Paul Mensonides
2002</i>
56 <div style=
"margin-left: 0px;">
57 <p><small>Distributed under the Boost Software License, Version
1.0. (See
58 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
60 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>