| 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 | <head> |
|---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|---|
| 6 | <meta name="generator" content="Docutils 0.3.6: http://docutils.sourceforge.net/" /> |
|---|
| 7 | <title>The MPL Reference Manual: Sequences</title> |
|---|
| 8 | <link rel="stylesheet" href="../style.css" type="text/css" /> |
|---|
| 9 | </head> |
|---|
| 10 | <body class="docframe refmanual"> |
|---|
| 11 | <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> |
|---|
| 12 | <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> |
|---|
| 13 | </tr></table><div class="header-separator"></div> |
|---|
| 14 | <div class="section" id="sequences"> |
|---|
| 15 | <h1><a class="toc-backref" href="../refmanual.html#id322" name="sequences">Sequences</a></h1> |
|---|
| 16 | <a class="target" id="label-sequences" name="label-sequences"></a><p>Compile-time sequences of types are one of the basic concepts of C++ |
|---|
| 17 | template metaprogramming. Differences in types of objects being |
|---|
| 18 | manipulated is the most common point of variability of similar, but |
|---|
| 19 | not identical designs, and these are a direct target for |
|---|
| 20 | metaprogramming. Templates were originally designed to address this |
|---|
| 21 | exact problem. However, without predefined mechanisms for |
|---|
| 22 | representing and manipulating <em>sequences</em> of types as opposed to |
|---|
| 23 | standalone template parameters, high-level template metaprogramming |
|---|
| 24 | is severely limited in its capabitilies.</p> |
|---|
| 25 | <p>The MPL recognizes the importance of type sequences as a fundamental |
|---|
| 26 | building block of many higher-level metaprogramming designs by |
|---|
| 27 | providing us with a conceptual framework for formal reasoning |
|---|
| 28 | and understanding of sequence properties, guarantees and |
|---|
| 29 | characteristics, as well as a first-class implementation of that |
|---|
| 30 | framework — a wealth of tools for concise, convenient, |
|---|
| 31 | conceptually precise and efficient sequence manipulation.</p> |
|---|
| 32 | <!-- modtime: November 04, 2004 19:08:54 +0000 --> |
|---|
| 33 | <ul class="toc simple" id="outline"> |
|---|
| 34 | <li><a class="reference" href="./concepts.html" id="id323" name="id323">Concepts</a></li> |
|---|
| 35 | <li><a class="reference" href="./classes.html" id="id334" name="id334">Classes</a></li> |
|---|
| 36 | <li><a class="reference" href="./views.html" id="id344" name="id344">Views</a></li> |
|---|
| 37 | <li><a class="reference" href="./intrinsic-metafunctions.html" id="id352" name="id352">Intrinsic Metafunctions</a></li> |
|---|
| 38 | </ul> |
|---|
| 39 | </div> |
|---|
| 40 | |
|---|
| 41 | <div class="footer-separator"></div> |
|---|
| 42 | <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> |
|---|
| 43 | </tr></table></body> |
|---|
| 44 | </html> |
|---|