<?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[std::vector als default parameter ?]]></title><description><![CDATA[<p>Hallo,</p>
<p>ist es irgendwie möglich einen std::vector als default parameter zu übergeben?<br />
ich komme nicht drauf...</p>
<p>void myFun(int a = 0, std::vector&lt; int &gt; v ???);</p>
<p>v(0) geht net.<br />
v = ...?</p>
<p>Danke für eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162363/std-vector-als-default-parameter</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 04:44:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162363.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Oct 2006 22:33:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to std::vector als default parameter ? on Tue, 17 Oct 2006 22:33:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ist es irgendwie möglich einen std::vector als default parameter zu übergeben?<br />
ich komme nicht drauf...</p>
<p>void myFun(int a = 0, std::vector&lt; int &gt; v ???);</p>
<p>v(0) geht net.<br />
v = ...?</p>
<p>Danke für eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156653</guid><dc:creator><![CDATA[Mati]]></dc:creator><pubDate>Tue, 17 Oct 2006 22:33:26 GMT</pubDate></item><item><title><![CDATA[Reply to std::vector als default parameter ? on Tue, 17 Oct 2006 22:46:12 GMT]]></title><description><![CDATA[<p>std::vector&lt; int &gt; v = std::vector&lt; int &gt; ()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156656</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156656</guid><dc:creator><![CDATA[Z2]]></dc:creator><pubDate>Tue, 17 Oct 2006 22:46:12 GMT</pubDate></item><item><title><![CDATA[Reply to std::vector als default parameter ? on Wed, 18 Oct 2006 00:36:17 GMT]]></title><description><![CDATA[<p>Genau, und wenn was drin stehen soll einfach ne MakeMyVector Funktion machen. Davon abgesehen dass man container meist als const-ref übergeben sollte. (Anders gesagt: es macht meist Sinn. Wenns keinen Sinn macht sollte man natürlich auch nicht:))</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156672</guid><dc:creator><![CDATA[Plotzenhotz]]></dc:creator><pubDate>Wed, 18 Oct 2006 00:36:17 GMT</pubDate></item></channel></rss>