<?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[Zwei STL Vektoren aneinanderhängen]]></title><description><![CDATA[<p>Hallo,<br />
ich suche eine (elegante undoder schnelle) Methode zwei stl Vektoren aneinander zuhängen. Mein Vorschlag:</p>
<pre><code>using namespace std;

 vector&lt;int&gt; a;
 a.push_back( 1 );

 vector&lt;int&gt; b;
 b.push_back( 2 );

 b.insert( b.end(),a.begin(),a.end() );
</code></pre>
<p>Habt ihr andere/bessere Ideen?<br />
LG, J.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/146993/zwei-stl-vektoren-aneinanderhängen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 21:34:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/146993.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 May 2006 16:41:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zwei STL Vektoren aneinanderhängen on Fri, 12 May 2006 16:41:13 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich suche eine (elegante undoder schnelle) Methode zwei stl Vektoren aneinander zuhängen. Mein Vorschlag:</p>
<pre><code>using namespace std;

 vector&lt;int&gt; a;
 a.push_back( 1 );

 vector&lt;int&gt; b;
 b.push_back( 2 );

 b.insert( b.end(),a.begin(),a.end() );
</code></pre>
<p>Habt ihr andere/bessere Ideen?<br />
LG, J.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1056638</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1056638</guid><dc:creator><![CDATA[JoeX]]></dc:creator><pubDate>Fri, 12 May 2006 16:41:13 GMT</pubDate></item><item><title><![CDATA[Reply to Zwei STL Vektoren aneinanderhängen on Fri, 12 May 2006 16:58:03 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>und was ist daran schlecht? Das ist die eleganteste Methode.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1056650</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1056650</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 12 May 2006 16:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to Zwei STL Vektoren aneinanderhängen on Fri, 12 May 2006 16:59:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">b.reserve (b.size () + a.size ());

std::copy (a.begin (), a.end (), std::back_inserter (b));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1056653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1056653</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Fri, 12 May 2006 16:59:32 GMT</pubDate></item></channel></rss>