Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/iterator/doc/SwappableIterator.html @ 12

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

added boost

File size: 2.0 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.3.6: http://docutils.sourceforge.net/" />
7<title>Swappable Iterator Concept</title>
8<link rel="stylesheet" href="default.css" type="text/css" />
9</head>
10<body>
11<h1 class="title">Swappable Iterator Concept</h1>
12<div class="document" id="swappable-iterator-concept">
13<p>A class or built-in type <tt class="literal"><span class="pre">X</span></tt> models the <em>Swappable Iterator</em> concept
14if, in addition to <tt class="literal"><span class="pre">X</span></tt> being Copy Constructible, the following
15expressions are valid and respect the stated semantics.</p>
16<table border="1" class="table">
17<colgroup>
18<col width="37%" />
19<col width="19%" />
20<col width="43%" />
21</colgroup>
22<thead valign="bottom">
23<tr><th colspan="3">Swappable Iterator Requirements (in addition to Copy Constructible)</th>
24</tr>
25<tr><th>Expression</th>
26<th>Return Type</th>
27<th>Postcondition</th>
28</tr>
29</thead>
30<tbody valign="top">
31<tr><td><tt class="literal"><span class="pre">iter_swap(a,</span> <span class="pre">b)</span></tt></td>
32<td><tt class="literal"><span class="pre">void</span></tt></td>
33<td>the pointed to values are
34exchanged</td>
35</tr>
36</tbody>
37</table>
38<dl>
39<dt>[<em>Note:</em> An iterator that is a model of the <em>Readable</em> and <em>Writable Iterator</em> concepts</dt>
40<dd>is also a model of <em>Swappable Iterator</em><em>--end note</em>]</dd>
41</dl>
42</div>
43<hr class="footer" />
44<div class="footer">
45<a class="reference" href="SwappableIterator.rst">View document source</a>.
46Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
47</div>
48</body>
49</html>
Note: See TracBrowser for help on using the repository browser.