<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>Chapter10. Iterators</title><metaname="generator"content="DocBook XSL-NS Stylesheets V1.76.1"/><metaname="keywords"content=" ISO C++ , library "/><metaname="keywords"content=" ISO C++ , runtime , library "/><linkrel="home"href="../index.html"title="The GNU C++ Library"/><linkrel="up"href="bk01pt02.html"title="PartII. Standard Contents"/><linkrel="prev"href="containers_and_c.html"title="Interacting with C"/><linkrel="next"href="algorithms.html"title="Chapter11. Algorithms"/></head><body><divclass="navheader"><tablewidth="100%"summary="Navigation header"><tr><thcolspan="3"align="center">Chapter10.
</h2></div></div></div><divclass="toc"><p><strong>Table of Contents</strong></p><dl><dt><spanclass="section"><ahref="iterators.html#std.iterators.predefined">Predefined</a></span></dt><dd><dl><dt><spanclass="section"><ahref="iterators.html#iterators.predefined.vs_pointers">Iterators vs. Pointers</a></span></dt><dt><spanclass="section"><ahref="iterators.html#iterators.predefined.end">One Past the End</a></span></dt></dl></dd></dl></div><divclass="section"title="Predefined"><divclass="titlepage"><div><div><h2class="title"><aid="std.iterators.predefined"/>Predefined</h2></div></div></div><divclass="section"title="Iterators vs. Pointers"><divclass="titlepage"><div><div><h3class="title"><aid="iterators.predefined.vs_pointers"/>Iterators vs. Pointers</h3></div></div></div><p>
</p></div><divclass="section"title="One Past the End"><divclass="titlepage"><div><div><h3class="title"><aid="iterators.predefined.end"/>One Past the End</h3></div></div></div><p>This starts off sounding complicated, but is actually very easy,
</p><divclass="orderedlist"><olclass="orderedlist"><liclass="listitem"><p>You can point anywhere in the array, <spanclass="emphasis"><em>or to the first element
</p></div></div></div><divclass="navfooter"><hr/><tablewidth="100%"summary="Navigation footer"><tr><tdalign="left"><aaccesskey="p"href="containers_and_c.html">Prev</a></td><tdalign="center"><aaccesskey="u"href="bk01pt02.html">Up</a></td><tdalign="right"><aaccesskey="n"href="algorithms.html">Next</a></td></tr><tr><tdalign="left"valign="top">Interacting with C</td><tdalign="center"><aaccesskey="h"href="../index.html">Home</a></td><tdalign="right"valign="top">Chapter11.