iterators.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536
  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.7: http://docutils.sourceforge.net/" />
  7. <title>The MPL Reference Manual: Iterators</title>
  8. <link rel="stylesheet" href="../style.css" type="text/css" />
  9. </head>
  10. <body class="docframe refmanual">
  11. <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>&nbsp;<a href="./iterators-concepts.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./sequences.html" class="navigation-link">Back</a>&nbsp;<a href="./algorithms.html" class="navigation-link">Along</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="../refmanual.html" class="navigation-link">Up</a>&nbsp;<a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td>
  12. <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>
  13. </tr></table><div class="header-separator"></div>
  14. <div class="section" id="iterators">
  15. <h1><a class="toc-backref" href="../refmanual.html#id1448">Iterators</a></h1>
  16. <p id="label-iterators">Iterators are generic means of addressing a particular element or a range
  17. of sequential elements in a sequence. They are also a mechanism that makes
  18. 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
  19. implementations</a>. Under the hood, all MPL sequence algorithms are
  20. implemented in terms of iterators. In particular, that means that they
  21. will work on any custom compile-time sequence, given that the appropriate
  22. iterator inteface is provided.</p>
  23. <!-- Analogy with STL iterators? -->
  24. <!-- More? -->
  25. <ul class="toc simple" id="outline">
  26. <li><a class="reference internal" href="./iterators-concepts.html" id="id1449">Concepts</a></li>
  27. <li><a class="reference internal" href="./iterator-metafunctions.html" id="id1453">Iterator Metafunctions</a></li>
  28. </ul>
  29. </div>
  30. <div class="footer-separator"></div>
  31. <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>&nbsp;<a href="./iterators-concepts.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./sequences.html" class="navigation-link">Back</a>&nbsp;<a href="./algorithms.html" class="navigation-link">Along</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="../refmanual.html" class="navigation-link">Up</a>&nbsp;<a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td>
  32. <td><div class="copyright-footer"><div class="copyright">Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams</div>
  33. Distributed under the Boost Software License, Version 1.0. (See accompanying
  34. 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>
  35. </html>