2002-02-04 14:57:59 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
|
<title>Boost.Preprocessor</title>
|
|
|
|
</head>
|
|
|
|
<body bgcolor="#FFFFFF" link="#0000ff" vlink="#800080">
|
|
|
|
<table border="0" cellpadding="7" cellspacing="0" width="100%" summary=
|
|
|
|
"header">
|
|
|
|
<tr>
|
|
|
|
<td valign="top" width="300">
|
|
|
|
<h3><a href="../../../../index.htm"><img height="86" width="277" alt="C++ Boost" src="../../../../c++boost.gif" border="0"></a></h3>
|
|
|
|
</td>
|
|
|
|
<td valign="top">
|
|
|
|
<h1 align="center">Boost.Preprocessor</h1>
|
|
|
|
<h2 align="center">Reference</h2>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<hr>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<a href="min.htm">Prev</a> <a href="repeat_2nd.htm">Next</a> <a href="index.htm#Macros">Macros</a> <a href="index.htm#Headers">Headers</a>
|
2002-01-31 15:36:01 +00:00
|
|
|
<hr>
|
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<h1>#include <<a href="../../../../boost/preprocessor/repeat.hpp">boost/preprocessor/repeat.hpp</a>></h1>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<h2><a name="BOOST_PP_REPEAT">#define BOOST_PP_REPEAT</a>(N,M,P)</h2>
|
|
|
|
<p>Repeats the macro <code>M(I,P)</code> for I = [0,N-1[.</p>
|
|
|
|
|
|
|
|
<p>In other words, expands to the sequence:</p>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<pre>
|
|
|
|
M(0,P) M(1,P) ... M(<a href="dec.htm#BOOST_PP_DEC">BOOST_PP_DEC</a>(N),P)
|
|
|
|
</pre>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<h3>2D and 3D repetition</h3>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<p>2D and 3D repetition are supported with the <a href="repeat_2nd.htm#BOOST_PP_REPEAT_2ND">BOOST_PP_REPEAT_2ND</a>() and
|
|
|
|
<a href="repeat_3rd.htm#BOOST_PP_REPEAT_3RD">BOOST_PP_REPEAT_3RD</a>() macros.</p>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<h3>Example</h3>
|
|
|
|
<ul>
|
|
|
|
<li><a href="../../example/repeat_2d.c">repeat_2d.c</a></li>
|
|
|
|
</ul>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<h3>See</h3>
|
|
|
|
<ul>
|
|
|
|
<li><a href="for.htm#BOOST_PP_FOR">BOOST_PP_FOR</a>()</li>
|
|
|
|
<li><a href="limits.htm#BOOST_PP_LIMIT_MAG">BOOST_PP_LIMIT_MAG</a></li>
|
|
|
|
</ul>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<hr>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<h2><a name="BOOST_PREPROCESSOR_REPEAT">#define BOOST_PREPROCESSOR_REPEAT</a>(N,M,P)</h2>
|
|
|
|
<p>Obsolete. Use <a href="repeat.htm#BOOST_PP_REPEAT">BOOST_PP_REPEAT</a>().</p>
|
2002-01-31 15:36:01 +00:00
|
|
|
<hr>
|
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<a href="min.htm">Prev</a> <a href="repeat_2nd.htm">Next</a> <a href="index.htm#Macros">Macros</a> <a href="index.htm#Headers">Headers</a>
|
2002-01-31 15:36:01 +00:00
|
|
|
<hr>
|
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<p>Revised <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %b %Y" startspan --><!--webbot bot="Timestamp" endspan i-checksum="15246" --></p>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
<p><i>© Copyright <a href="http://www.housemarque.com">Housemarque Oy</a> 2002</i></p>
|
|
|
|
|
|
|
|
<p><i>Permission to copy, use, modify, sell and distribute this document is granted
|
2002-01-31 15:36:01 +00:00
|
|
|
provided this copyright notice appears in all copies. This document is provided
|
|
|
|
"as is" without express or implied warranty, and with no claim as to its suitability
|
2002-02-04 14:57:59 +00:00
|
|
|
for any purpose.</i></p>
|
2002-01-31 15:36:01 +00:00
|
|
|
|
2002-02-04 14:57:59 +00:00
|
|
|
</body></html>
|