<?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[Delimitoren für operator&amp;gt;&amp;gt;]]></title><description><![CDATA[<p>Hallo<br />
Was sind laut Standard die Delimitoren für den Operator:</p>
<pre><code class="language-cpp">std::istream&amp; std::operator&gt;&gt; (std::istream&amp;, std::string&amp;);
</code></pre>
<p>Und wie Verhalten sie sich im Bezug auf <code>std::istream.ios_base::skipws</code> ?</p>
<p>MfG, EOutOfResources</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/291000/delimitoren-für-operator-gt-gt</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 00:27:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/291000.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Aug 2011 18:13:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Delimitoren für operator&amp;gt;&amp;gt; on Mon, 08 Aug 2011 18:13:24 GMT]]></title><description><![CDATA[<p>Hallo<br />
Was sind laut Standard die Delimitoren für den Operator:</p>
<pre><code class="language-cpp">std::istream&amp; std::operator&gt;&gt; (std::istream&amp;, std::string&amp;);
</code></pre>
<p>Und wie Verhalten sie sich im Bezug auf <code>std::istream.ios_base::skipws</code> ?</p>
<p>MfG, EOutOfResources</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2103587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2103587</guid><dc:creator><![CDATA[EOutOfResources]]></dc:creator><pubDate>Mon, 08 Aug 2011 18:13:24 GMT</pubDate></item><item><title><![CDATA[Reply to Delimitoren für operator&amp;gt;&amp;gt; on Mon, 08 Aug 2011 18:25:36 GMT]]></title><description><![CDATA[<p>EOutOfResources schrieb:</p>
<blockquote>
<p>Hallo<br />
Was sind laut Standard die Delimitoren für den Operator:</p>
<pre><code class="language-cpp">std::istream&amp; std::operator&gt;&gt; (std::istream&amp;, std::string&amp;);
</code></pre>
</blockquote>
<p>Afaik alles, was vom verwendeten Locale als Whitespace eingestuft wird.</p>
<blockquote>
<p>Und wie Verhalten sie sich im Bezug auf <code>std::istream.ios_base::skipws</code> ?</p>
</blockquote>
<p>Da bin ich mir nicht so sicher (und ein Schnelltest per Ideone brachte auch kein klares Ergebnis).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2103593</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2103593</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 08 Aug 2011 18:25:36 GMT</pubDate></item><item><title><![CDATA[Reply to Delimitoren für operator&amp;gt;&amp;gt; on Mon, 08 Aug 2011 18:25:52 GMT]]></title><description><![CDATA[<p><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="😃"
    /><br />
Die Frage ist nicht wirklich ernst gemeint oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2103594</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2103594</guid><dc:creator><![CDATA[sehr_lustig]]></dc:creator><pubDate>Mon, 08 Aug 2011 18:25:52 GMT</pubDate></item><item><title><![CDATA[Reply to Delimitoren für operator&amp;gt;&amp;gt; on Mon, 08 Aug 2011 18:30:05 GMT]]></title><description><![CDATA[<p>CStoll schrieb:</p>
<blockquote>
<p>Afaik alles, was vom verwendeten Locale als Whitespace eingestuft wird.</p>
</blockquote>
<p>Ok.</p>
<p>CStoll schrieb:</p>
<blockquote>
<p>Da bin ich mir nicht so sicher (und ein Schnelltest per Ideone brachte auch kein klares Ergebnis).</p>
</blockquote>
<p>Schade. Ich hätte ein eindeutiges Ergebnis erwartet. Ich werde mal in den WD gucken.</p>
<p>sehr_lustig schrieb:</p>
<blockquote>
<p>Die Frage ist nicht wirklich ernst gemeint oder?</p>
</blockquote>
<p>Doch...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2103596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2103596</guid><dc:creator><![CDATA[EOutOfResources]]></dc:creator><pubDate>Mon, 08 Aug 2011 18:30:05 GMT</pubDate></item><item><title><![CDATA[Reply to Delimitoren für operator&amp;gt;&amp;gt; on Mon, 08 Aug 2011 20:46:17 GMT]]></title><description><![CDATA[<p>CStoll schrieb:</p>
<blockquote>
<p>EOutOfResources schrieb:</p>
<blockquote>
<p>Hallo<br />
Was sind laut Standard die Delimitoren für den Operator:</p>
<pre><code class="language-cpp">std::istream&amp; std::operator&gt;&gt; (std::istream&amp;, std::string&amp;);
</code></pre>
</blockquote>
<p>Afaik alles, was vom verwendeten Locale als Whitespace eingestuft wird.</p>
</blockquote>
<p>genau so ist es.</p>
<p>EOutOfResources schrieb:</p>
<blockquote>
<p>Und wie Verhalten sie sich im Bezug auf <code>std::istream.ios_base::skipws</code> ?</p>
</blockquote>
<p>skipws ist per default am istream eingestellt. Das heißt: führende White Space Character werden überlesen. Das Lesen eines string beginnt erst mit dem ersten nicht WS-Character. Mit noskipws werden führende WS-Character nicht mehr überlesen, aber auch nicht eingelesen. Zeigt der Lesezeiger auf ein WS-Character, so wird bei 'noskipws' ein Leerstring gelesen, da dieses Zeichen bereits als 'Delimiter' interpretiert wird.</p>
<p>C++Standard 21.3.7.9 schrieb:</p>
<blockquote>
<p>Inserters and extractors</p>
<pre><code class="language-cpp">template&lt;class charT, class traits, class Allocator&gt;
basic_istream&lt;charT,traits&gt;&amp;
operator&gt;&gt;(basic_istream&lt;charT,traits&gt;&amp; is,
basic_string&lt;charT,traits,Allocator&gt;&amp; str);
</code></pre>
<p>1 Effects: Begins by constructing a sentry object k as if k were constructed by typename<br />
basic_istream&lt;charT,traits&gt;::sentry k(is). If bool(k) is true, it calls<br />
str.erase() and then extracts characters from is and appends them to str as if by calling<br />
str.append(1,c). If is.width() is greater than zero, the maximum number n of characters<br />
appended is is.width(); otherwise n is str.max_size(). Characters are extracted and<br />
appended until any of the following occurs:<br />
— n characters are stored;<br />
— end-of-file occurs on the input sequence;<br />
— isspace(c,is.getloc()) is true for the next available input character c.<br />
2 After the last character (if any) is extracted, is.width(0) is called and the sentry object k is<br />
destroyed.</p>
</blockquote>
<p>Bem.:</p>
<pre><code class="language-cpp">basic_istream&lt;charT,traits&gt;::sentry k(is)
</code></pre>
<p>überliest die führenden WS-Character bei 'skipws' Einstellung.</p>
<p>Gruß<br />
Werner</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2103688</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2103688</guid><dc:creator><![CDATA[Werner Salomon]]></dc:creator><pubDate>Mon, 08 Aug 2011 20:46:17 GMT</pubDate></item><item><title><![CDATA[Reply to Delimitoren für operator&amp;gt;&amp;gt; on Tue, 09 Aug 2011 15:17:27 GMT]]></title><description><![CDATA[<p>Danke vielmals Werner <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2103975</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2103975</guid><dc:creator><![CDATA[EOutOfResources]]></dc:creator><pubDate>Tue, 09 Aug 2011 15:17:27 GMT</pubDate></item></channel></rss>