<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>Chapter10. Iterators</title><metaname="generator"content="DocBook XSL-NS Stylesheets V1.78.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="std_contents.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><dlclass="toc"><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"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aid="std.iterators.predefined"></a>Predefined</h2></div></div></div><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aid="iterators.predefined.vs_pointers"></a>Iterators vs. Pointers</h3></div></div></div><p>
</p></div><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aid="iterators.predefined.end"></a>One Past the End</h3></div></div></div><p>This starts off sounding complicated, but is actually very easy,
</p><divclass="orderedlist"><olclass="orderedlist"type="1"><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><tdwidth="40%"align="left"><aaccesskey="p"href="containers_and_c.html">Prev</a></td><tdwidth="20%"align="center"><aaccesskey="u"href="std_contents.html">Up</a></td><tdwidth="40%"align="right"><aaccesskey="n"href="algorithms.html">Next</a></td></tr><tr><tdwidth="40%"align="left"valign="top">Interacting with C</td><tdwidth="20%"align="center"><aaccesskey="h"href="../index.html">Home</a></td><tdwidth="40%"align="right"valign="top">Chapter11.