• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Forward Range</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../index.html" title="Chapter 1. Range 2.0">
8<link rel="up" href="../concepts.html" title="Range Concepts">
9<link rel="prev" href="single_pass_range.html" title="Single Pass Range">
10<link rel="next" href="bidirectional_range.html" title="Bidirectional Range">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<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>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="range.concepts.forward_range"></a><a class="link" href="forward_range.html" title="Forward Range">Forward Range</a>
28</h3></div></div></div>
29<h5>
30<a name="range.concepts.forward_range.h0"></a>
31        <span class="phrase"><a name="range.concepts.forward_range.notation"></a></span><a class="link" href="forward_range.html#range.concepts.forward_range.notation">Notation</a>
32      </h5>
33<div class="informaltable"><table class="table">
34<colgroup>
35<col>
36<col>
37</colgroup>
38<thead><tr></tr></thead>
39<tbody>
40<tr>
41<td>
42                <p>
43                  <code class="computeroutput"><span class="identifier">X</span></code>
44                </p>
45              </td>
46<td>
47                <p>
48                  A type that is a model of <a class="link" href="forward_range.html" title="Forward Range">Forward
49                  Range</a>.
50                </p>
51              </td>
52</tr>
53<tr>
54<td>
55                <p>
56                  <code class="computeroutput"><span class="identifier">a</span></code>
57                </p>
58              </td>
59<td>
60                <p>
61                  Object of type X.
62                </p>
63              </td>
64</tr>
65</tbody>
66</table></div>
67<h5>
68<a name="range.concepts.forward_range.h1"></a>
69        <span class="phrase"><a name="range.concepts.forward_range.description"></a></span><a class="link" href="forward_range.html#range.concepts.forward_range.description">Description</a>
70      </h5>
71<p>
72        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">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</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
73        Traversal Iterator</a>.
74      </p>
75<h5>
76<a name="range.concepts.forward_range.h2"></a>
77        <span class="phrase"><a name="range.concepts.forward_range.refinement_of"></a></span><a class="link" href="forward_range.html#range.concepts.forward_range.refinement_of">Refinement
78        of</a>
79      </h5>
80<p>
81        <a class="link" href="single_pass_range.html" title="Single Pass Range">Single Pass Range</a>
82      </p>
83<h5>
84<a name="range.concepts.forward_range.h3"></a>
85        <span class="phrase"><a name="range.concepts.forward_range.associated_types"></a></span><a class="link" href="forward_range.html#range.concepts.forward_range.associated_types">Associated
86        types</a>
87      </h5>
88<div class="informaltable"><table class="table">
89<colgroup>
90<col>
91<col>
92<col>
93</colgroup>
94<thead><tr></tr></thead>
95<tbody>
96<tr>
97<td>
98                <p>
99                  Distance type
100                </p>
101              </td>
102<td>
103                <p>
104                  <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">range_difference</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
105                </p>
106              </td>
107<td>
108                <p>
109                  A signed integral type used to represent the distance between two
110                  of the Range's iterators. This type must be the same as the iterator's
111                  distance type.
112                </p>
113              </td>
114</tr>
115<tr>
116<td>
117                <p>
118                  Size type
119                </p>
120              </td>
121<td>
122                <p>
123                  <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">range_size</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
124                </p>
125              </td>
126<td>
127                <p>
128                  An unsigned integral type that can represent any nonnegative value
129                  of the Range's distance type.
130                </p>
131              </td>
132</tr>
133</tbody>
134</table></div>
135<h5>
136<a name="range.concepts.forward_range.h4"></a>
137        <span class="phrase"><a name="range.concepts.forward_range.see_also"></a></span><a class="link" href="forward_range.html#range.concepts.forward_range.see_also">See
138        also</a>
139      </h5>
140<p>
141        <a class="link" href="../reference/concept_implementation/semantics/metafunctions.html" title="Metafunctions">Implementation
142        of metafunctions</a>
143      </p>
144<p>
145        <a class="link" href="../reference/concept_implementation/semantics/functions.html" title="Functions">Implementation
146        of functions</a>
147      </p>
148</div>
149<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
150<td align="left"></td>
151<td align="right"><div class="copyright-footer">Copyright © 2003-2010 Thorsten Ottosen,
152      Neil Groves<p>
153        Distributed under the Boost Software License, Version 1.0. (See accompanying
154        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>)
155      </p>
156</div></td>
157</tr></table>
158<hr>
159<div class="spirit-nav">
160<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>
161</div>
162</body>
163</html>
164