<?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[ein stringstream in einen anderen kopieren]]></title><description><![CDATA[<p>hi,<br />
wie kopiere ich am besten ein stringstream in einen anderen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177741/ein-stringstream-in-einen-anderen-kopieren</link><generator>RSS for Node</generator><lastBuildDate>Fri, 26 Jun 2026 19:08:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177741.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Apr 2007 15:47:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ein stringstream in einen anderen kopieren on Tue, 03 Apr 2007 15:47:49 GMT]]></title><description><![CDATA[<p>hi,<br />
wie kopiere ich am besten ein stringstream in einen anderen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258699</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258699</guid><dc:creator><![CDATA[streamkopierer]]></dc:creator><pubDate>Tue, 03 Apr 2007 15:47:49 GMT</pubDate></item><item><title><![CDATA[Reply to ein stringstream in einen anderen kopieren on Tue, 03 Apr 2007 16:08:19 GMT]]></title><description><![CDATA[<p>Hm, also so gehts auf jeden Fall:</p>
<p>[cpp]<br />
stringstream str1; str &lt;&lt; &quot;Hallo Welt&quot;;<br />
stringstream str2( str1.str() ); //Möglichkeit 1<br />
stringstream str3; str3 &lt;&lt; str1.str(); //Möglichkeit 2<br />
stringstream str4;<br />
copy( istream_iterator&lt;string&gt;(str1), istream_iterator&lt;string&gt;(), ostream_iterator&lt;string&gt;(str4) ); //Möglichkeit 4, aber evt. mit Syntaxfehler</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258710</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258710</guid><dc:creator><![CDATA[lolz_ausgeloggt]]></dc:creator><pubDate>Tue, 03 Apr 2007 16:08:19 GMT</pubDate></item><item><title><![CDATA[Reply to ein stringstream in einen anderen kopieren on Tue, 03 Apr 2007 17:00:22 GMT]]></title><description><![CDATA[<p>Und was ist Möglichkeit 3 ;)?</p>
<p>Zwei Varianten hätte ich noch:</p>
<pre><code class="language-cpp">target&lt;&lt;source.rdbuf();
source&gt;&gt;target.rdbuf();
</code></pre>
<p>(die funktionieren sogar mit beliebigen IO-Streams)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258739</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258739</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 03 Apr 2007 17:00:22 GMT</pubDate></item><item><title><![CDATA[Reply to ein stringstream in einen anderen kopieren on Tue, 03 Apr 2007 17:58:05 GMT]]></title><description><![CDATA[<p>Da hab ich mich doch glatt verzählt.</p>
<p>Cool, deine Variante kannte ich gar nicht. Die ist natürlich besser, als einen temporären String mit str() zu erzeugen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258759</guid><dc:creator><![CDATA[lolz]]></dc:creator><pubDate>Tue, 03 Apr 2007 17:58:05 GMT</pubDate></item></channel></rss>