<?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[eine klasse mit variabler anzahl an templates erzeugen]]></title><description><![CDATA[<p>ist es möglich, eine variable anzahl an templates zu übergeben?<br />
(wie das zb. bei std::cout der fall ist, nur dass es dort &quot;normale&quot; variablenargumente sind)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/156709/eine-klasse-mit-variabler-anzahl-an-templates-erzeugen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 23:08:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/156709.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 Aug 2006 12:38:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to eine klasse mit variabler anzahl an templates erzeugen on Sat, 19 Aug 2006 12:38:32 GMT]]></title><description><![CDATA[<p>ist es möglich, eine variable anzahl an templates zu übergeben?<br />
(wie das zb. bei std::cout der fall ist, nur dass es dort &quot;normale&quot; variablenargumente sind)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1120244</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1120244</guid><dc:creator><![CDATA[just]]></dc:creator><pubDate>Sat, 19 Aug 2006 12:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to eine klasse mit variabler anzahl an templates erzeugen on Sat, 19 Aug 2006 13:10:51 GMT]]></title><description><![CDATA[<p>just schrieb:</p>
<blockquote>
<p>ist es möglich, eine variable anzahl an templates zu übergeben?</p>
</blockquote>
<p>Nein.</p>
<p>just schrieb:</p>
<blockquote>
<p>(wie das zb. bei std::cout der fall ist, nur dass es dort &quot;normale&quot; variablenargumente sind)</p>
</blockquote>
<p>Bei</p>
<pre><code class="language-cpp">cout &lt;&lt; &quot;Sonstwas&quot; &lt;&lt; &quot; nochwas&quot; &lt;&lt; endl;
</code></pre>
<p>übergiebst du keine Templateparameter (die Typennamen und keine Ausdrücke sind).</p>
<p>Greetz, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1120265</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1120265</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Sat, 19 Aug 2006 13:10:51 GMT</pubDate></item><item><title><![CDATA[Reply to eine klasse mit variabler anzahl an templates erzeugen on Sat, 19 Aug 2006 13:31:54 GMT]]></title><description><![CDATA[<blockquote>
<p>(wie das zb. bei std::cout der fall ist, nur dass es dort &quot;normale&quot; variablenargumente sind)</p>
</blockquote>
<blockquote>
<p>Bei</p>
<p>C/C++ Code:<br />
cout &lt;&lt; &quot;Sonstwas&quot; &lt;&lt; &quot; nochwas&quot; &lt;&lt; endl;<br />
C/C++ Code:<br />
cout &lt;&lt; &quot;Sonstwas&quot; &lt;&lt; &quot; nochwas&quot; &lt;&lt; endl;<br />
C/C++ Code:<br />
cout &lt;&lt; &quot;Sonstwas&quot; &lt;&lt; &quot; nochwas&quot; &lt;&lt; endl;</p>
<p>übergiebst du keine Templateparameter (die Typennamen und keine Ausdrücke sind).</p>
</blockquote>
<p>hab auch nie behauptet dass templateparameter übergebe</p>
<p>aber danke für die antwort</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1120284</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1120284</guid><dc:creator><![CDATA[just]]></dc:creator><pubDate>Sat, 19 Aug 2006 13:31:54 GMT</pubDate></item><item><title><![CDATA[Reply to eine klasse mit variabler anzahl an templates erzeugen on Sat, 19 Aug 2006 18:48:31 GMT]]></title><description><![CDATA[<p>Ne du übergibst nur 1 Parameter, wenn op&lt;&lt; member von cout ist und 2 Parameter wenn op&lt;&lt; ne freie funktion ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1120531</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1120531</guid><dc:creator><![CDATA[Lolz]]></dc:creator><pubDate>Sat, 19 Aug 2006 18:48:31 GMT</pubDate></item><item><title><![CDATA[Reply to eine klasse mit variabler anzahl an templates erzeugen on Mon, 21 Aug 2006 15:41:40 GMT]]></title><description><![CDATA[<p>just schrieb:</p>
<blockquote>
<p>ist es möglich, eine variable anzahl an templates zu übergeben?<br />
(wie das zb. bei std::cout der fall ist, nur dass es dort &quot;normale&quot; variablenargumente sind)</p>
</blockquote>
<p>Hi,</p>
<p>magst Du das mal noch ein wenig ausführen ?<br />
Willst Du ein Klassentemplate erzeugen ?<br />
Was meinst Du mit &quot;templates einer Klasse&quot; ?<br />
Welche Anzahl wovon soll variabel sein ?</p>
<p>Vielleicht bin ich einfach nur zu blöd (die anderen haben ja schon geantwortet, also vermutlich die Fragestellung kapiert)....</p>
<p>Meinst Du vielleicht etwas wie</p>
<pre><code class="language-cpp">template &lt;typename T1, typename T2, ....&gt; // Aufrufer entscheidet selbst, wieviele template-Argumente er übergeben will
class A {
    foreach_templArg&lt;T a&gt;; // erzeugt: &quot;T1 a1;    T2 a2; ...&quot;
};
</code></pre>
<p>?</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1121658</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1121658</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Mon, 21 Aug 2006 15:41:40 GMT</pubDate></item></channel></rss>