Files
preprocessor/doc/examples.htm
T

92 lines
3.3 KiB
HTML
Raw Normal View History

2002-03-08 06:18:57 +00:00
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
2002-05-16 22:17:39 +00:00
<link rel="stylesheet" type="text/css" href="../../../boost.css">
2002-03-08 06:18:57 +00:00
<title>Boost.Preprocessor - Bibliography</title>
</head>
2002-05-16 22:17:39 +00:00
<body link="#0000ff" vlink="#800080">
2002-03-08 06:18:57 +00:00
<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">Examples</h2>
</td>
</tr>
</table>
<hr>
<table>
2002-06-07 13:04:18 +00:00
<tr><td><a href="../example/array_arithmetic.c">array_arithmetic.c</a></td><td>Implements over 2200 functions for 1-dimensional arithmetic
2002-03-08 06:18:57 +00:00
array manipulation in C. The idea is to use preprocessor data structures,
lists and tuples, for storing metainformation to be used for generating
the actual C code.</td></tr>
<tr>
<td><a href="../example/catch_builtin.cpp">catch_builtin.cpp</a></td>
2002-06-07 13:04:18 +00:00
<td>Demonstrates the usage of lists and BOOST_PP_LIST_FOR_EACH().</td>
2002-03-08 06:18:57 +00:00
</tr>
<tr>
<td><a href="../example/count_down.c">count_down.c</a></td>
2002-06-07 13:04:18 +00:00
<td> Trivial example of using BOOST_PP_WHILE() that simply counts
2002-03-08 06:18:57 +00:00
down from N to 0 ultimately expanding to a 0.</td>
</tr>
<tr>
<td><a href="../example/delay.c">delay.c</a></td>
2002-06-07 13:04:18 +00:00
<td>Implements a macro whose expansion takes exponential amount
2002-03-08 06:18:57 +00:00
of time.</td>
</tr>
<tr>
<td><a href="../example/duffs_device.c">duffs_device.c</a></td>
2002-06-07 13:04:18 +00:00
<td>Uses the preprocessor library to implement a generalized
2002-03-08 06:18:57 +00:00
macro for implementing a Duff's Device.</td>
</tr>
<tr>
<td><a href="../example/is_integral.cpp">is_integral.cpp</a></td>
2002-06-07 13:04:18 +00:00
<td>Demonstrates the usage of preprocessor lists for generating
2002-03-08 06:18:57 +00:00
C++ code.</td>
</tr>
<tr>
<td><a href="../example/linear_fib.c">linear_fib.c</a></td>
2002-06-07 13:04:18 +00:00
<td>Shows how BOOST_PP_WHILE() can be used for implementing macros.</td>
2002-03-08 06:18:57 +00:00
</tr>
<tr>
<td><a href="../example/note.c">note.c</a></td>
2002-06-07 13:04:18 +00:00
<td>Shows how BOOST_PP_STRINGIZE() can be used to allow macro
2002-03-08 06:18:57 +00:00
expansion before stringization.</td>
</tr>
<tr>
<td><a href="../example/repeat_2d.c">repeat_2d.c</a></td>
2002-06-07 13:04:18 +00:00
<td>Implements a generalized macro for 2D repetition using the
2002-03-08 06:18:57 +00:00
simple repetition primitives of the preprocessor library.</td>
</tr>
<tr>
<td><a href="../example/static_assert.c">static_assert.c</a></td>
2002-06-07 13:04:18 +00:00
<td>Shows how BOOST_PP_CAT() can be used to allow macro expansion
2002-03-08 06:18:57 +00:00
before token concatenation.</td>
</tr>
<tr>
<td><a href="../example/subscript_layer.cpp">subscript_layer.cpp</a></td>
2002-06-07 13:04:18 +00:00
<td>Shows how BOOST_PP_EMPTY can be used as an unused or empty
2002-03-08 06:18:57 +00:00
parameter.</td>
</tr>
</table>
<hr>
<p>Revised
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->
<!--webbot bot="Timestamp" endspan i-checksum="39359" -->
</p>
<p><i>&copy; Copyright <a href="http://www.housemarque.com">Housemarque Oy</a> 2002</i></p>
2002-05-16 22:17:39 +00:00
<p>Permission to copy, use, modify, sell and distribute this document is granted
2002-03-08 06:18:57 +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-05-16 22:17:39 +00:00
for any purpose.</p>
2002-03-08 06:18:57 +00:00
</body>
</html>