Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/preprocessor/doc/ref/iteration.html @ 12

Last change on this file since 12 was 12, checked in by landauf, 18 years ago

added boost

File size: 1.2 KB
Line 
1<html>
2<head>
3        <title>BOOST_PP_ITERATION</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_ITERATION</b> macro expands to the iteration value of the current <i>file-iteration</i> depth.
9        </div>
10        <h4>Usage</h4>
11                <div class="code">
12                        <b>BOOST_PP_ITERATION</b>()
13                </div>
14        <h4>Remarks</h4>
15                <div>
16                        This macro is only valid when a <i>file-iteration</i> is in progress.
17                </div>
18        <h4>Requirements</h4>
19                <div>
20                        <b>Header:</b> &nbsp;<a href="../headers/iteration/iterate.html">&lt;boost/preprocessor/iteration/iterate.hpp&gt;</a>
21                </div>
22        <h4>Sample Code</h4>
23<div><pre>
24// file.h
25#if !<a href="is_iterating.html">BOOST_PP_IS_ITERATING</a>
26
27   #ifndef FILE_H_
28   #define FILE_H_
29
30   #include &lt;<a href="../headers/iteration/iterate.html">boost/preprocessor/iteration/iterate.hpp</a>&gt;
31
32   #define <a href="iteration_params_x.html">BOOST_PP_ITERATION_PARAMS_1</a> (3, (1, 3, "file.h"))
33   #include <a href="iterate.html">BOOST_PP_ITERATE</a>()
34
35   #endif
36
37#elif <a href="iteration_depth.html">BOOST_PP_ITERATION_DEPTH</a>() == 1
38
39   value == <a href="iteration.html">BOOST_PP_ITERATION</a>()
40
41#endif
42</pre></div>
43</body>
44</html>
Note: See TracBrowser for help on using the repository browser.