Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/iterator/doc/IncrementableIterator.html @ 29

Last change on this file since 29 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 2.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<meta name="generator" content="Docutils 0.5: http://docutils.sourceforge.net/" />
7<title>Incrementable Iterator Concept</title>
8<link rel="stylesheet" href="../../../rst.css" type="text/css" />
9</head>
10<body>
11<div class="document" id="incrementable-iterator-concept">
12<h1 class="title">Incrementable Iterator Concept</h1>
13
14<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
15<!-- Software License, Version 1.0. (See accompanying -->
16<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
17<p>A class or built-in type <tt class="docutils literal"><span class="pre">X</span></tt> models the <em>Incrementable Iterator</em>
18concept if, in addition to <tt class="docutils literal"><span class="pre">X</span></tt> being Assignable and Copy
19Constructible, the following expressions are valid and respect the
20stated semantics.</p>
21<table border="1" class="docutils">
22<colgroup>
23<col width="39%" />
24<col width="37%" />
25<col width="24%" />
26</colgroup>
27<thead valign="bottom">
28<tr><th class="head" colspan="3">Incrementable Iterator Requirements (in addition to Assignable, Copy Constructible)</th>
29</tr>
30<tr><th class="head">Expression</th>
31<th class="head">Return Type</th>
32<th class="head">Assertion/Semantics</th>
33</tr>
34</thead>
35<tbody valign="top">
36<tr><td><tt class="docutils literal"><span class="pre">++r</span></tt></td>
37<td><tt class="docutils literal"><span class="pre">X&amp;</span></tt></td>
38<td><tt class="docutils literal"><span class="pre">&amp;r</span> <span class="pre">==</span> <span class="pre">&amp;++r</span></tt></td>
39</tr>
40<tr><td><tt class="docutils literal"><span class="pre">r++</span></tt></td>
41<td><tt class="docutils literal"><span class="pre">X</span></tt></td>
42<td><pre class="first last literal-block">
43{
44   X tmp = r;
45   ++r;
46   return tmp;
47}
48</pre>
49</td>
50</tr>
51<tr><td><tt class="docutils literal"><span class="pre">iterator_traversal&lt;X&gt;::type</span></tt></td>
52<td>Convertible to
53<tt class="docutils literal"><span class="pre">incrementable_traversal_tag</span></tt></td>
54<td>&nbsp;</td>
55</tr>
56</tbody>
57</table>
58</div>
59<div class="footer">
60<hr class="footer" />
61<a class="reference external" href="IncrementableIterator.rst">View document source</a>.
62Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
63
64</div>
65</body>
66</html>
Note: See TracBrowser for help on using the repository browser.