<?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[Frage zu for-Kopf &#x2F; Iterator Inkrement in Visual Studio STL]]></title><description><![CDATA[<p>Ich schaue mir gerade einen Vortrag an, in dem einige Implementation Details der Standard Library von Visual Studio gezeigt werden: <a href="https://www.youtube.com/watch?v=dTeKf5Oek2c" rel="nofollow">https://www.youtube.com/watch?v=dTeKf5Oek2c</a><br />
Bei 23:10 sieht man folgende Schleife:</p>
<pre><code>template&lt;class _FwdIt1, class _FwdIt2, /*usw*/)
bool is_permutation(_FwdIt1 _First1, _FwdIt1 _Last1, _FwdIt2 _First2. _FwdIt2 _Last2, /*usw*/)
{
    /* usw */
    for(; _First1 != _Last1 &amp;&amp; _First2 != _Last2; ++First1, (void)++_First2)
        /* usw */
}
</code></pre>
<p>Warum wird hier das <strong>(void)</strong> benutzt beim zweiten Inkrement?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/328660/frage-zu-for-kopf-iterator-inkrement-in-visual-studio-stl</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 08:54:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/328660.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Oct 2014 16:59:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu for-Kopf &#x2F; Iterator Inkrement in Visual Studio STL on Tue, 21 Oct 2014 16:59:56 GMT]]></title><description><![CDATA[<p>Ich schaue mir gerade einen Vortrag an, in dem einige Implementation Details der Standard Library von Visual Studio gezeigt werden: <a href="https://www.youtube.com/watch?v=dTeKf5Oek2c" rel="nofollow">https://www.youtube.com/watch?v=dTeKf5Oek2c</a><br />
Bei 23:10 sieht man folgende Schleife:</p>
<pre><code>template&lt;class _FwdIt1, class _FwdIt2, /*usw*/)
bool is_permutation(_FwdIt1 _First1, _FwdIt1 _Last1, _FwdIt2 _First2. _FwdIt2 _Last2, /*usw*/)
{
    /* usw */
    for(; _First1 != _Last1 &amp;&amp; _First2 != _Last2; ++First1, (void)++_First2)
        /* usw */
}
</code></pre>
<p>Warum wird hier das <strong>(void)</strong> benutzt beim zweiten Inkrement?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2423200</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2423200</guid><dc:creator><![CDATA[asdfasd]]></dc:creator><pubDate>Tue, 21 Oct 2014 16:59:56 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu for-Kopf &#x2F; Iterator Inkrement in Visual Studio STL on Tue, 21 Oct 2014 17:43:53 GMT]]></title><description><![CDATA[<p>Hätte ich mal das Video zuende geschaut... Bei ca. 51:00 gibts die Antwort:<br />
Das (void) schützt vor überladenem Komma-Operator.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2423213</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2423213</guid><dc:creator><![CDATA[asdfasd]]></dc:creator><pubDate>Tue, 21 Oct 2014 17:43:53 GMT</pubDate></item></channel></rss>