2004-11-28 03:35:12 +00:00
<?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" >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" />
2010-08-09 20:07:24 +00:00
< meta name = "generator" content = "Docutils 0.7: http://docutils.sourceforge.net/" />
2004-11-28 03:35:12 +00:00
< title > The MPL Reference Manual: Sequences</ title >
< link rel = "stylesheet" href = "../style.css" type = "text/css" />
</ head >
< body class = "docframe refmanual" >
< 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 >
< 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 >
</ tr ></ table >< div class = "header-separator" ></ div >
< div class = "section" id = "sequences" >
2010-08-09 20:07:24 +00:00
< h1 >< a class = "toc-backref" href = "../refmanual.html#id1393" > Sequences</ a ></ h1 >
2009-08-17 11:30:52 +00:00
< p id = "label-sequences" > Compile-time sequences of types are one of the basic concepts of C++
template metaprogramming. Differences in types of objects being
manipulated is the most common point of variability of similar, but
not identical designs, and these are a direct target for
2004-11-28 03:35:12 +00:00
metaprogramming. Templates were originally designed to address this
2009-08-17 11:30:52 +00:00
exact problem. However, without predefined mechanisms for
representing and manipulating < em > sequences</ em > of types as opposed to
2004-11-28 03:35:12 +00:00
standalone template parameters, high-level template metaprogramming
is severely limited in its capabitilies.</ p >
< p > The MPL recognizes the importance of type sequences as a fundamental
building block of many higher-level metaprogramming designs by
2009-08-17 11:30:52 +00:00
providing us with a conceptual framework for formal reasoning
and understanding of sequence properties, guarantees and
2004-11-28 03:35:12 +00:00
characteristics, as well as a first-class implementation of that
framework — a wealth of tools for concise, convenient,
conceptually precise and efficient sequence manipulation.</ p >
< ul class = "toc simple" id = "outline" >
2010-08-09 20:07:24 +00:00
< li >< a class = "reference internal" href = "./concepts.html" id = "id1394" > Concepts</ a ></ li >
< li >< a class = "reference internal" href = "./classes.html" id = "id1405" > Classes</ a ></ li >
< li >< a class = "reference internal" href = "./views.html" id = "id1416" > Views</ a ></ li >
< li >< a class = "reference internal" href = "./intrinsic-metafunctions.html" id = "id1424" > Intrinsic Metafunctions</ a ></ li >
2004-11-28 03:35:12 +00:00
</ 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 = "../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 >
2009-08-17 11:30:52 +00:00
< td >< div class = "copyright-footer" >< div class = "copyright" > Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams</ div >
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at < a class = "reference external" href = "http://www.boost.org/LICENSE_1_0.txt" target = "_top" > http://www.boost.org/LICENSE_1_0.txt</ a > )</ div ></ td ></ tr ></ table ></ body >
2004-11-28 03:35:12 +00:00
</ html >