1 | <?xml version="1.0" encoding="utf-8" ?> |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
4 | <!-- Copyright Aleksey Gurtovoy 2006. Distributed under the Boost --> |
---|
5 | <!-- Software License, Version 1.0. (See accompanying --> |
---|
6 | <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) --> |
---|
7 | <head> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
9 | <meta name="generator" content="Docutils 0.3.6: http://docutils.sourceforge.net/" /> |
---|
10 | <title>The MPL Reference Manual: Sequences</title> |
---|
11 | <link rel="stylesheet" href="../style.css" type="text/css" /> |
---|
12 | </head> |
---|
13 | <body class="docframe refmanual"> |
---|
14 | <table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="../refmanual.html" class="navigation-link">Prev</a> <a href="./concepts.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group">Back <a href="./iterators.html" class="navigation-link">Along</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="../refmanual.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td> |
---|
15 | <td class="header-group page-location"><a href="../refmanual.html" class="navigation-link">Front Page</a> / <a href="./sequences.html" class="navigation-link">Sequences</a></td> |
---|
16 | </tr></table><div class="header-separator"></div> |
---|
17 | <div class="section" id="sequences"> |
---|
18 | <h1><a class="toc-backref" href="../refmanual.html#id322" name="sequences">Sequences</a></h1> |
---|
19 | <a class="target" id="label-sequences" name="label-sequences"></a><p>Compile-time sequences of types are one of the basic concepts of C++ |
---|
20 | template metaprogramming. Differences in types of objects being |
---|
21 | manipulated is the most common point of variability of similar, but |
---|
22 | not identical designs, and these are a direct target for |
---|
23 | metaprogramming. Templates were originally designed to address this |
---|
24 | exact problem. However, without predefined mechanisms for |
---|
25 | representing and manipulating <em>sequences</em> of types as opposed to |
---|
26 | standalone template parameters, high-level template metaprogramming |
---|
27 | is severely limited in its capabitilies.</p> |
---|
28 | <p>The MPL recognizes the importance of type sequences as a fundamental |
---|
29 | building block of many higher-level metaprogramming designs by |
---|
30 | providing us with a conceptual framework for formal reasoning |
---|
31 | and understanding of sequence properties, guarantees and |
---|
32 | characteristics, as well as a first-class implementation of that |
---|
33 | framework — a wealth of tools for concise, convenient, |
---|
34 | conceptually precise and efficient sequence manipulation.</p> |
---|
35 | <!-- modtime: November 04, 2004 19:08:54 +0000 --> |
---|
36 | <ul class="toc simple" id="outline"> |
---|
37 | <li><a class="reference" href="./concepts.html" id="id323" name="id323">Concepts</a></li> |
---|
38 | <li><a class="reference" href="./classes.html" id="id334" name="id334">Classes</a></li> |
---|
39 | <li><a class="reference" href="./views.html" id="id344" name="id344">Views</a></li> |
---|
40 | <li><a class="reference" href="./intrinsic-metafunctions.html" id="id352" name="id352">Intrinsic Metafunctions</a></li> |
---|
41 | </ul> |
---|
42 | </div> |
---|
43 | |
---|
44 | <div class="footer-separator"></div> |
---|
45 | <table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="../refmanual.html" class="navigation-link">Prev</a> <a href="./concepts.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group">Back <a href="./iterators.html" class="navigation-link">Along</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="../refmanual.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td> |
---|
46 | </tr></table></body> |
---|
47 | </html> |
---|