2010-03-28 16:08:35 +00:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=US-ASCII" >
< title > Forward Range</ title >
2010-07-13 20:31:40 +00:00
< link rel = "stylesheet" href = "../../../../../../doc/src/boostbook.css" type = "text/css" >
< meta name = "generator" content = "DocBook XSL Stylesheets V1.75.2" >
2010-03-28 16:08:35 +00:00
< link rel = "home" href = "../../index.html" title = "Chapter 1. Range 2.0" >
< link rel = "up" href = "../concepts.html" title = "Range Concepts" >
< link rel = "prev" href = "single_pass_range.html" title = "Single Pass Range" >
< link rel = "next" href = "bidirectional_range.html" title = "Bidirectional Range" >
</ head >
< body bgcolor = "white" text = "black" link = "#0000FF" vlink = "#840084" alink = "#0000FF" >
< table cellpadding = "2" width = "100%" >< tr >
< td valign = "top" >< img alt = "Boost C++ Libraries" width = "277" height = "86" src = "../../../../../../boost.png" ></ td >
< td align = "center" >< a href = "../../../../../../index.html" > Home</ a ></ td >
2010-07-13 20:31:40 +00:00
< td align = "center" >< a href = "../../../../../../libs/libraries.htm" > Libraries</ a ></ td >
2010-03-28 16:08:35 +00:00
< td align = "center" >< a href = "http://www.boost.org/users/people.html" > People</ a ></ td >
< td align = "center" >< a href = "http://www.boost.org/users/faq.html" > FAQ</ a ></ td >
< td align = "center" >< a href = "../../../../../../more/index.htm" > More</ a ></ td >
</ tr ></ table >
< hr >
< div class = "spirit-nav" >
2010-07-13 20:31:40 +00:00
< a accesskey = "p" href = "single_pass_range.html" >< img src = "../../../../../../doc/src/images/prev.png" alt = "Prev" ></ a >< a accesskey = "u" href = "../concepts.html" >< img src = "../../../../../../doc/src/images/up.png" alt = "Up" ></ a >< a accesskey = "h" href = "../../index.html" >< img src = "../../../../../../doc/src/images/home.png" alt = "Home" ></ a >< a accesskey = "n" href = "bidirectional_range.html" >< img src = "../../../../../../doc/src/images/next.png" alt = "Next" ></ a >
2010-03-28 16:08:35 +00:00
</ div >
2012-12-21 08:44:32 +00:00
< div class = "section range_concepts_forward_range" >
2010-03-28 16:08:35 +00:00
< div class = "titlepage" >< div >< div >< h3 class = "title" >
< a name = "range.concepts.forward_range" ></ a >< a class = "link" href = "forward_range.html" title = "Forward Range" > Forward Range</ a >
</ h3 ></ div ></ div ></ div >
2012-12-21 08:44:32 +00:00
< h5 >
< a name = "range.concepts.forward_range.h0" ></ a >
< span >< a name = "range.concepts.forward_range.notation" ></ a ></ span >< a class = "link" href = "forward_range.html#range.concepts.forward_range.notation" > Notation</ a >
2010-03-28 16:08:35 +00:00
</ h5 >
< div class = "informaltable" >< table class = "table" >
< colgroup >
< col >
< col >
</ colgroup >
< thead >< tr ></ tr ></ thead >
< tbody >
< tr >
< td >
< p >
< code class = "computeroutput" >< span class = "identifier" > X</ span ></ code >
</ p >
</ td >
< td >
< p >
A type that is a model of < a class = "link" href = "forward_range.html" title = "Forward Range" > Forward
Range</ a > .
</ p >
</ td >
</ tr >
< tr >
< td >
< p >
< code class = "computeroutput" >< span class = "identifier" > a</ span ></ code >
</ p >
</ td >
< td >
< p >
Object of type X.
</ p >
</ td >
</ tr >
</ tbody >
</ table ></ div >
2012-12-21 08:44:32 +00:00
< h5 >
< a name = "range.concepts.forward_range.h1" ></ a >
< span >< a name = "range.concepts.forward_range.description" ></ a ></ span >< a class = "link" href = "forward_range.html#range.concepts.forward_range.description" > Description</ a >
2010-03-28 16:08:35 +00:00
</ h5 >
< p >
2010-04-05 17:36:10 +00:00
A range < code class = "computeroutput" >< span class = "identifier" > X</ span ></ code > where < code class = "computeroutput" >< span class = "identifier" > boost</ span >< span class = "special" > ::</ span >< span class = "identifier" > range_iterator</ span >< span class = "special" > < </ span >< span class = "identifier" > X</ span >< span class = "special" > > ::</ span >< span class = "identifier" > type</ span ></ code > is a model of < a href = "../../../../../../libs/iterator/doc/new-iter-concepts.html#forward-traversal-iterators-lib-forward-traversal-iterators" target = "_top" > Forward
2010-03-28 16:08:35 +00:00
Traversal Iterator</ a > .
</ p >
2012-12-21 08:44:32 +00:00
< h5 >
< a name = "range.concepts.forward_range.h2" ></ a >
< span >< a name = "range.concepts.forward_range.refinement_of" ></ a ></ span >< a class = "link" href = "forward_range.html#range.concepts.forward_range.refinement_of" > Refinement
of</ a >
2010-03-28 16:08:35 +00:00
</ h5 >
< p >
< a class = "link" href = "single_pass_range.html" title = "Single Pass Range" > Single Pass Range</ a >
</ p >
2012-12-21 08:44:32 +00:00
< h5 >
< a name = "range.concepts.forward_range.h3" ></ a >
< span >< a name = "range.concepts.forward_range.associated_types" ></ a ></ span >< a class = "link" href = "forward_range.html#range.concepts.forward_range.associated_types" > Associated
2010-03-28 16:08:35 +00:00
types</ a >
</ h5 >
< div class = "informaltable" >< table class = "table" >
< colgroup >
< col >
< col >
< col >
</ colgroup >
< thead >< tr ></ tr ></ thead >
< tbody >
< tr >
< td >
< p >
Distance type
</ p >
</ td >
< td >
< p >
< code class = "computeroutput" >< span class = "identifier" > boost</ span >< span class = "special" > ::</ span >< span class = "identifier" > range_difference</ span >< span class = "special" > < </ span >< span class = "identifier" > X</ span >< span class = "special" > > ::</ span >< span class = "identifier" > type</ span ></ code >
</ p >
</ td >
< td >
< p >
A signed integral type used to represent the distance between two
of the Range's iterators. This type must be the same as the iterator's
distance type.
</ p >
</ td >
</ tr >
< tr >
< td >
< p >
Size type
</ p >
</ td >
< td >
< p >
< code class = "computeroutput" >< span class = "identifier" > boost</ span >< span class = "special" > ::</ span >< span class = "identifier" > range_size</ span >< span class = "special" > < </ span >< span class = "identifier" > X</ span >< span class = "special" > > ::</ span >< span class = "identifier" > type</ span ></ code >
</ p >
</ td >
< td >
< p >
An unsigned integral type that can represent any nonnegative value
of the Range's distance type.
</ p >
</ td >
</ tr >
</ tbody >
</ table ></ div >
2012-12-21 08:44:32 +00:00
< h5 >
< a name = "range.concepts.forward_range.h4" ></ a >
< span >< a name = "range.concepts.forward_range.see_also" ></ a ></ span >< a class = "link" href = "forward_range.html#range.concepts.forward_range.see_also" > See
also</ a >
2010-03-28 16:08:35 +00:00
</ h5 >
< p >
2010-04-28 18:03:26 +00:00
< a class = "link" href = "../reference/concept_implementation/semantics/metafunctions.html" title = "Metafunctions" > Implementation
of metafunctions</ a >
2010-03-28 16:08:35 +00:00
</ p >
< p >
2010-04-28 18:03:26 +00:00
< a class = "link" href = "../reference/concept_implementation/semantics/functions.html" title = "Functions" > Implementation
of functions</ a >
2010-03-28 16:08:35 +00:00
</ p >
</ div >
< table xmlns:rev = "http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width = "100%" >< tr >
< td align = "left" ></ td >
2012-12-21 08:44:32 +00:00
< td align = "right" >< div class = "copyright-footer" > Copyright © 2003-2010 Thorsten Ottosen,
Neil Groves< p >
2010-03-28 16:08:35 +00:00
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at < a href = "http://www.boost.org/LICENSE_1_0.txt" target = "_top" > http://www.boost.org/LICENSE_1_0.txt</ a > )
</ p >
</ div ></ td >
</ tr ></ table >
< hr >
< div class = "spirit-nav" >
2010-07-13 20:31:40 +00:00
< a accesskey = "p" href = "single_pass_range.html" >< img src = "../../../../../../doc/src/images/prev.png" alt = "Prev" ></ a >< a accesskey = "u" href = "../concepts.html" >< img src = "../../../../../../doc/src/images/up.png" alt = "Up" ></ a >< a accesskey = "h" href = "../../index.html" >< img src = "../../../../../../doc/src/images/home.png" alt = "Home" ></ a >< a accesskey = "n" href = "bidirectional_range.html" >< img src = "../../../../../../doc/src/images/next.png" alt = "Next" ></ a >
2010-03-28 16:08:35 +00:00
</ div >
</ body >
</ html >