<?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[Ohne schleife durch std::vector iterieren ?]]></title><description><![CDATA[<p>Kann mann irgendwie durch nen Stl Vector iterieren ohne eine Schleife zu nutzen ?<br />
Vielleicht mit foreach() ?<br />
Der best mögliche Weg würde mich da mal interessieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/288006/ohne-schleife-durch-std-vector-iterieren</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 05:04:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/288006.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Jun 2011 16:25:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 16:25:38 GMT]]></title><description><![CDATA[<p>Kann mann irgendwie durch nen Stl Vector iterieren ohne eine Schleife zu nutzen ?<br />
Vielleicht mit foreach() ?<br />
Der best mögliche Weg würde mich da mal interessieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075312</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075312</guid><dc:creator><![CDATA[Bacid90210]]></dc:creator><pubDate>Wed, 08 Jun 2011 16:25:38 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 16:27:59 GMT]]></title><description><![CDATA[<p>std::foreach() ist schonmal eine Lösung, je nachdem, was du vorhast, könnte auch ein anderer STL-Algroithmus geeignet sein.<br />
(aber intern verwenden die auch nur eine Schleife :D)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075313</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 08 Jun 2011 16:27:59 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 16:35:30 GMT]]></title><description><![CDATA[<p>Rekursion ginge. Aber wozu soll das gut sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075318</guid><dc:creator><![CDATA[seldon]]></dc:creator><pubDate>Wed, 08 Jun 2011 16:35:30 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 16:44:55 GMT]]></title><description><![CDATA[<p>Is neh Aufgabenstellung von meinem Prof gewesen.<br />
Hab es jetzt über foreach gemacht und mir neh print funktion geschrieben.<br />
Ob das jetzt effektiver ist , ist die zweite Frage <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075322</guid><dc:creator><![CDATA[Bacid90210]]></dc:creator><pubDate>Wed, 08 Jun 2011 16:44:55 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 16:59:33 GMT]]></title><description><![CDATA[<p>Was für eine sinnlose Aufgabe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075327</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075327</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Wed, 08 Jun 2011 16:59:33 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 17:00:57 GMT]]></title><description><![CDATA[<p>Bacid90210 schrieb:</p>
<blockquote>
<p>Hab es jetzt über foreach gemacht und mir neh print funktion geschrieben.</p>
</blockquote>
<p>Wie gesagt, es gibt noch andere Algorithmen - und für die Ausgabe hätte ich jetzt std::copy() mit einem ostream_iterator als Ziel verwendet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075328</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 08 Jun 2011 17:00:57 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 17:13:01 GMT]]></title><description><![CDATA[<p>Wenn wir schon dabei sind , kann man per for_each und der min funktion aus &lt;algorithm&gt; irgendwie das minimum in einem Vector finden ?<br />
Ich hab keine Lust komplett durch den Vector zu iterieren und zu vergleichen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075334</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075334</guid><dc:creator><![CDATA[Bacid90210]]></dc:creator><pubDate>Wed, 08 Jun 2011 17:13:01 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 17:15:12 GMT]]></title><description><![CDATA[<p>Wenn man es sich umständlich machen will, geht das sicher, aber dafür gibt es einfachere Lösungen: std::min_element()</p>
<p>PS: for_each () kann zwar fast alles mit Iteratoren machen, aber es gibt einen Grund, warum es nicht alleine in &lt;algorithm&gt; steht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075338</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075338</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 08 Jun 2011 17:15:12 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 17:15:12 GMT]]></title><description><![CDATA[<p>Wie wäre es, gleich min_element zu benutzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075337</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075337</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 08 Jun 2011 17:15:12 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne schleife durch std::vector iterieren ? on Wed, 08 Jun 2011 17:17:19 GMT]]></title><description><![CDATA[<p>Ok hab isch auch grad gefunden . Trotzdem thx <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2075339</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2075339</guid><dc:creator><![CDATA[Bacid90210]]></dc:creator><pubDate>Wed, 08 Jun 2011 17:17:19 GMT</pubDate></item></channel></rss>