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" >
2006-10-18 06:08:05 +00:00
<!-- 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) -->
2004-11-28 03:35:12 +00:00
< 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 MPL Reference Manual: Iterators</ 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 = "./value-type.html" class = "navigation-link" > Prev</ a > < a href = "./iterators-concepts.html" class = "navigation-link" > Next</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./sequences.html" class = "navigation-link" > Back</ a > < a href = "./algorithms.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 = "./iterators.html" class = "navigation-link" > Iterators</ a ></ td >
</ tr ></ table >< div class = "header-separator" ></ div >
< div class = "section" id = "iterators" >
< h1 >< a class = "toc-backref" href = "../refmanual.html#id376" name = "iterators" > Iterators</ a ></ h1 >
< a class = "target" id = "label-iterators" name = "label-iterators" ></ a >< p > Iterators are generic means of addressing a particular element or a range
of sequential elements in a sequence. They are also a mechanism that makes
it possible to decouple < a class = "reference" href = "./algorithms.html" > algorithms</ a > from concrete compile-time < a class = "reference" href = "./classes.html#label-sequences-classes" > sequence
implementations</ a > . Under the hood, all MPL sequence algorithms are
implemented in terms of iterators. In particular, that means that they
will work on any custom compile-time sequence, given that the appropriate
iterator inteface is provided.</ p >
<!-- Analogy with STL iterators? -->
<!-- More? -->
<!-- modtime: November 15, 2004 03:06:40 +0000 -->
< ul class = "toc simple" id = "outline" >
< li >< a class = "reference" href = "./iterators-concepts.html" id = "id377" name = "id377" > Concepts</ a ></ li >
< li >< a class = "reference" href = "./iterator-metafunctions.html" id = "id381" name = "id381" > Iterator Metafunctions</ 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 = "./value-type.html" class = "navigation-link" > Prev</ a > < a href = "./iterators-concepts.html" class = "navigation-link" > Next</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./sequences.html" class = "navigation-link" > Back</ a > < a href = "./algorithms.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 >
</ tr ></ table ></ body >
</ html >