<?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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/" /> <title>The MPL Reference Manual: Iterators</title> <link rel="stylesheet" href="../style.css" type="text/css" /> </head> <body class="docframe refmanual"> <table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./value-type.html" class="navigation-link">Prev</a> <a href="./iterators-concepts.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./sequences.html" class="navigation-link">Back</a> <a href="./algorithms.html" class="navigation-link">Along</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="../refmanual.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td> <td class="header-group page-location"><a href="../refmanual.html" class="navigation-link">Front Page</a> / <a href="./iterators.html" class="navigation-link">Iterators</a></td> </tr></table><div class="header-separator"></div> <div class="section" id="iterators"> <h1><a class="toc-backref" href="../refmanual.html#id1448">Iterators</a></h1> <p id="label-iterators">Iterators are generic means of addressing a particular element or a range of sequential elements in a sequence. They are also a mechanism that makes it possible to decouple <a class="reference internal" href="./algorithms.html">algorithms</a> from concrete compile-time <a class="reference internal" href="./classes.html#label-sequences-classes">sequence implementations</a>. Under the hood, all MPL sequence algorithms are implemented in terms of iterators. In particular, that means that they will work on any custom compile-time sequence, given that the appropriate iterator inteface is provided.</p> <!-- Analogy with STL iterators? --> <!-- More? --> <ul class="toc simple" id="outline"> <li><a class="reference internal" href="./iterators-concepts.html" id="id1449">Concepts</a></li> <li><a class="reference internal" href="./iterator-metafunctions.html" id="id1453">Iterator Metafunctions</a></li> </ul> </div> <div class="footer-separator"></div> <table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./value-type.html" class="navigation-link">Prev</a> <a href="./iterators-concepts.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./sequences.html" class="navigation-link">Back</a> <a href="./algorithms.html" class="navigation-link">Along</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="../refmanual.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td> <td><div class="copyright-footer"><div class="copyright">Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams</div> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a class="reference external" href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</div></td></tr></table></body> </html>