mpl/doc/tutorial/tutorial-metafunctions.html
2007-11-03 03:25:13 +00:00

51 lines
4.8 KiB
HTML

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Copyright Aleksey Gurtovoy 2006. Distributed under the Boost -->
<!-- Software License, Version 1.0. (See accompanying -->
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.3.6: http://docutils.sourceforge.net/" />
<title>THE BOOST MPL LIBRARY: Tutorial: Metafunctions and Higher-Order Metaprogramming</title>
<link rel="stylesheet" href="../style.css" type="text/css" />
</head>
<body class="docframe">
<table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="../index.html" class="navigation-link">Prev</a>&nbsp;<a href="./dimensional-analysis.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group">Back&nbsp;<a href="./reference-manual.html" class="navigation-link">Along</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="../index.html" class="navigation-link">Up</a>&nbsp;<a href="../index.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./tutorial_toc.html" class="navigation-link">Full TOC</a></span></td>
<td class="header-group page-location"><a href="../index.html" class="navigation-link">Front Page</a> / <a href="./tutorial-metafunctions.html" class="navigation-link">Tutorial: Metafunctions and Higher-Order Metaprogramming</a></td>
</tr></table><div class="header-separator"></div>
<div class="section" id="tutorial-metafunctions">
<h1><a class="toc-backref" href="../index.html#id40" name="tutorial-metafunctions">Tutorial: Metafunctions and Higher-Order Metaprogramming</a></h1>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Note:</th><td class="field-body">The following material is an excerpt from Chapter 3 of &quot;<a class="reference" href="http://www.awprofessional.com/titles/0321227255" target="_top">C++ Template Metaprogramming</a>&quot;,
by David Abrahams and Aleksey Gurtovoy, ISBN 0321227255, <a class="reference" href="http://www.awprofessional.com/titles/0321227255" target="_top">http://www.awprofessional.com/titles/0321227255</a>.
Copyright (c) 2005 by Pearson Education, Inc. Reprinted with permission.</td>
</tr>
</tbody>
</table>
<p>With the foundation laid so far, we're ready to explore one of the
most basic uses for template metaprogramming techniques: adding
static type checking to traditionally unchecked operations. We'll
look at a practical example from science and engineering that can
find applications in almost any numerical code.
Along the way you'll learn some important new concepts and
get a taste of metaprogramming at a high level using the MPL.</p>
<ul class="toc simple" id="outline">
<li><a class="reference" href="./dimensional-analysis.html" id="id41" name="id41">Dimensional Analysis</a></li>
<li><a class="reference" href="./higher-order.html" id="id47" name="id47">Higher-Order Metafunctions</a></li>
<li><a class="reference" href="./handling-placeholders.html" id="id48" name="id48">Handling Placeholders</a></li>
<li><a class="reference" href="./more-lambda-capabilities.html" id="id51" name="id51">More Lambda Capabilities</a></li>
<li><a class="reference" href="./lambda-details.html" id="id54" name="id54">Lambda Details</a></li>
<li><a class="reference" href="./details.html" id="id59" name="id59">Details</a></li>
<li><a class="reference" href="./exercises.html" id="id60" name="id60">Exercises</a></li>
</ul>
</div>
<div class="footer-separator"></div>
<table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="../index.html" class="navigation-link">Prev</a>&nbsp;<a href="./dimensional-analysis.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group">Back&nbsp;<a href="./reference-manual.html" class="navigation-link">Along</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="../index.html" class="navigation-link">Up</a>&nbsp;<a href="../index.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./tutorial_toc.html" class="navigation-link">Full TOC</a></span></td>
</tr></table></body>
</html>