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: Concepts</ 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 = "./iterators.html" class = "navigation-link" > Prev</ a > < a href = "./forward-iterator.html" class = "navigation-link" > Next</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" > Back < a href = "./iterator-metafunctions.html" class = "navigation-link" > Along</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./iterators.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 > / < a href = "./iterators-concepts.html" class = "navigation-link" > Concepts</ a ></ td >
</ tr ></ table >< div class = "header-separator" ></ div >
< div class = "section" id = "iterators-concepts" >
< h1 >< a class = "toc-backref" href = "./iterators.html#id377" name = "iterators-concepts" > Concepts</ a ></ h1 >
< a class = "target" id = "label-iterators-concepts" name = "label-iterators-concepts" ></ a >< p > All iterators in MPL are classified into three iterator concepts, or
< cite > categories</ cite > , named according to the type of traversal provided. The
categories are: < a class = "reference" href = "./forward-iterator.html" > Forward Iterator</ a > , < a class = "reference" href = "./bidirectional-iterator.html" > Bidirectional Iterator</ a > , and
< a class = "reference" href = "./random-access-iterator.html" > Random Access Iterator</ a > . The concepts are hierarchical:
< a class = "reference" href = "./random-access-iterator.html" > Random Access Iterator</ a > is a refinement of < a class = "reference" href = "./bidirectional-iterator.html" > Bidirectional Iterator</ a > ,
which, in its turn, is a refinement of < a class = "reference" href = "./forward-iterator.html" > Forward Iterator</ a > .</ p >
< p > Because of the inherently immutable nature of the value access, MPL
iterators escape the problems of the traversal-only categorization
discussed at length in < a class = "citation-reference" href = "#n1550" id = "id76" name = "id76" > [n1550]</ a > .</ p >
< table class = "citation" frame = "void" id = "n1550" rules = "none" >
< colgroup >< col class = "label" />< col /></ colgroup >
< tbody valign = "top" >
< tr >< td class = "label" >< a class = "fn-backref" href = "#id76" name = "n1550" > [n1550]</ a ></ td >< td >< a class = "reference" href = "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1550.htm" target = "_top" > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1550.htm</ a ></ td ></ tr >
</ tbody >
</ table >
<!-- modtime: November 11, 2004 10:12:50 +0000 -->
<!-- Iterators/Concepts//Forward Iterator |10 -->
< ul class = "toc simple" id = "outline" >
< li >< a class = "reference" href = "./forward-iterator.html" id = "id378" name = "id378" > Forward Iterator</ a ></ li >
< li >< a class = "reference" href = "./bidirectional-iterator.html" id = "id379" name = "id379" > Bidirectional Iterator</ a ></ li >
< li >< a class = "reference" href = "./random-access-iterator.html" id = "id380" name = "id380" > Random Access Iterator</ 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 = "./iterators.html" class = "navigation-link" > Prev</ a > < a href = "./forward-iterator.html" class = "navigation-link" > Next</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" > Back < a href = "./iterator-metafunctions.html" class = "navigation-link" > Along</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./iterators.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 >