mpl/doc/tutorial/iterator-protocol.html
2021-12-01 19:37:28 -08:00

60 lines
4.8 KiB
HTML

<?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">
<!-- 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) -->
<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 BOOST MPL LIBRARY: Iterator Protocol</title>
<link rel="stylesheet" href="../style.css" type="text/css" />
</head>
<body class="docframe">
<table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./apply-lambda-semantics.html" class="navigation-link">Prev</a>&nbsp;<a href="./tag-dispatching-protocol.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./apply-lambda-semantics.html" class="navigation-link">Back</a>&nbsp;<a href="./tag-dispatching-protocol.html" class="navigation-link">Along</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./changes-in-boost-1-32-0.html" class="navigation-link">Up</a>&nbsp;<a href="../index.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./tutorial_toc.html" class="navigation-link">Full TOC</a></span></td>
<td class="header-group page-location"><a href="../index.html" class="navigation-link">Front Page</a> / <a href="./changelog-history.html" class="navigation-link">Changelog &amp; History</a> / <a href="./changes-in-boost-1-32-0.html" class="navigation-link">Changes in Boost 1.32.0 Release</a> / <a href="./iterator-protocol.html" class="navigation-link">Iterator Protocol</a></td>
</tr></table><div class="header-separator"></div>
<div class="section" id="iterator-protocol">
<h1><a class="toc-backref" href="./changes-in-boost-1-32-0.html#id65" name="iterator-protocol">Iterator Protocol</a></h1>
<p>The library no longer guarantees or relies on the direct presence
of <tt class="literal"><span class="pre">advance</span></tt> / <tt class="literal"><span class="pre">distance</span></tt> / <tt class="literal"><span class="pre">next</span></tt> / <tt class="literal"><span class="pre">prior</span></tt> / <tt class="literal"><span class="pre">type</span></tt>
members in iterator types; the following table summarises the new
requirements:</p>
<table border="1" class="table">
<colgroup>
<col width="50%" />
<col width="50%" />
</colgroup>
<thead valign="bottom">
<tr><th>Before</th>
<th>Now</th>
</tr>
</thead>
<tbody valign="top">
<tr><td><tt class="literal"><span class="pre">i::type</span></tt></td>
<td><tt class="literal"><span class="pre">deref&lt;i&gt;::type</span></tt></td>
</tr>
<tr><td><tt class="literal"><span class="pre">i::next</span></tt></td>
<td><tt class="literal"><span class="pre">next&lt;i&gt;::type</span></tt></td>
</tr>
<tr><td><tt class="literal"><span class="pre">i::prior</span></tt></td>
<td><tt class="literal"><span class="pre">prior&lt;i&gt;::type</span></tt></td>
</tr>
<tr><td><tt class="literal"><span class="pre">i::advance&lt;n&gt;::type</span></tt></td>
<td><tt class="literal"><span class="pre">advance&lt;i,n&gt;::type</span></tt></td>
</tr>
<tr><td><tt class="literal"><span class="pre">i::distance&lt;j&gt;::type</span></tt></td>
<td><tt class="literal"><span class="pre">distance&lt;i,j&gt;::type</span></tt></td>
</tr>
<tr><td><tt class="literal"><span class="pre">i::category</span></tt></td>
<td><tt class="literal"><span class="pre">i::category</span></tt></td>
</tr>
</tbody>
</table>
</div>
<div class="footer-separator"></div>
<table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./apply-lambda-semantics.html" class="navigation-link">Prev</a>&nbsp;<a href="./tag-dispatching-protocol.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./apply-lambda-semantics.html" class="navigation-link">Back</a>&nbsp;<a href="./tag-dispatching-protocol.html" class="navigation-link">Along</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./changes-in-boost-1-32-0.html" class="navigation-link">Up</a>&nbsp;<a href="../index.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./tutorial_toc.html" class="navigation-link">Full TOC</a></span></td>
</tr></table></body>
</html>