<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Grundlegende Fragen zu Iteratoren]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Ein paar Fragen:</p>
<p>1. Wenn ich zwei Listen habe und nur einen Iterator, kann ich diesen Iterator für beide Listen verwenden, oder brauche ich für jede Liste einen eigenen Iterator?</p>
<p>2. wie kann ich auf ein beliebiges Element zugreifen?<br />
das funktioniert nämlich nicht: *(iterator + 4)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/176084/grundlegende-fragen-zu-iteratoren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 11:22:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/176084.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Mar 2007 13:01:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Grundlegende Fragen zu Iteratoren on Sat, 17 Mar 2007 13:01:33 GMT]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Ein paar Fragen:</p>
<p>1. Wenn ich zwei Listen habe und nur einen Iterator, kann ich diesen Iterator für beide Listen verwenden, oder brauche ich für jede Liste einen eigenen Iterator?</p>
<p>2. wie kann ich auf ein beliebiges Element zugreifen?<br />
das funktioniert nämlich nicht: *(iterator + 4)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247197</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247197</guid><dc:creator><![CDATA[nightrider]]></dc:creator><pubDate>Sat, 17 Mar 2007 13:01:33 GMT</pubDate></item><item><title><![CDATA[Reply to Grundlegende Fragen zu Iteratoren on Sat, 17 Mar 2007 13:03:15 GMT]]></title><description><![CDATA[<ol start="2">
<li></li>
</ol>
<pre><code class="language-cpp">std::vector&lt;std::string&gt; data;
std::vector&lt;std::string&gt;::iterator it = data.begin() + 4;
</code></pre>
<p>Was geht daran nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247198</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247198</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 17 Mar 2007 13:03:15 GMT</pubDate></item><item><title><![CDATA[Reply to Grundlegende Fragen zu Iteratoren on Sat, 17 Mar 2007 13:09:45 GMT]]></title><description><![CDATA[<ol>
<li></li>
</ol>
<pre><code class="language-cpp">if( it == list1.end() ) it = list2.begin();
</code></pre>
<ol start="2">
<li></li>
</ol>
<p>Geht nur mit random-access-iteratoren, also nicht bei std::list</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247203</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247203</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Sat, 17 Mar 2007 13:09:45 GMT</pubDate></item><item><title><![CDATA[Reply to Grundlegende Fragen zu Iteratoren on Sat, 17 Mar 2007 13:23:38 GMT]]></title><description><![CDATA[<p>Ist doch uralt, das weiß doch schon jeder. Überlegt euch doch mal neue Fragen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247211</guid><dc:creator><![CDATA[FachmannFürAltes]]></dc:creator><pubDate>Sat, 17 Mar 2007 13:23:38 GMT</pubDate></item><item><title><![CDATA[Reply to Grundlegende Fragen zu Iteratoren on Sat, 17 Mar 2007 13:48:27 GMT]]></title><description><![CDATA[<p>Wenn du einen nicht-Random-Access-Iterator um n Poistionen schieben willst gibts dazu std::advance, wenn du das aber öfters brauchst solltest du einen dementsprechnden Container verwenden.</p>
<p>(Warum bin ich nur so nett auf einmal? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> )</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247225</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247225</guid><dc:creator><![CDATA[Entenwickler wieder da]]></dc:creator><pubDate>Sat, 17 Mar 2007 13:48:27 GMT</pubDate></item></channel></rss>