<?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[template typedefs moeglich?]]></title><description><![CDATA[<p>Ich habe ein paar verschachtelte Templatenamen mit mehreren Parametern, die ich mittels typedefs etwas uebersichtlicher gestalten moechte. Allerdings ist nicht jeder Templateparameter genau spezialisiert, ist etwas wie folgt moeglich:</p>
<pre><code class="language-cpp">template &lt;class T1, class T2, int N&gt; class Blubb;  // &lt;-- wenn ich hier fuer T1 und T2 beispielsweise nochmal Templates einsetze, wirds lang
                             // wenn ich Blubb auch noch als Parameter an ein anderes template uebergebe wirds eklig

// geht das, was jetzt kommt???
template &lt;int N&gt;
typedef std::set&lt; Blubb&lt; int, std::vector&lt;float&gt;, N&gt; &gt; SetVonBlubbVonFloatVectorundInt;

int main()
{
SetVonBlubbVonFloatVectorundInt&lt;20&gt; bsp20;
SetVonBlubbVonFloatVectorundInt&lt;13&gt; bsp13;
}
</code></pre>
<p>waere ein Kunstrukt dieser Art moeglich?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182359/template-typedefs-moeglich</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 17:22:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182359.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 May 2007 08:41:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to template typedefs moeglich? on Thu, 24 May 2007 08:41:12 GMT]]></title><description><![CDATA[<p>Ich habe ein paar verschachtelte Templatenamen mit mehreren Parametern, die ich mittels typedefs etwas uebersichtlicher gestalten moechte. Allerdings ist nicht jeder Templateparameter genau spezialisiert, ist etwas wie folgt moeglich:</p>
<pre><code class="language-cpp">template &lt;class T1, class T2, int N&gt; class Blubb;  // &lt;-- wenn ich hier fuer T1 und T2 beispielsweise nochmal Templates einsetze, wirds lang
                             // wenn ich Blubb auch noch als Parameter an ein anderes template uebergebe wirds eklig

// geht das, was jetzt kommt???
template &lt;int N&gt;
typedef std::set&lt; Blubb&lt; int, std::vector&lt;float&gt;, N&gt; &gt; SetVonBlubbVonFloatVectorundInt;

int main()
{
SetVonBlubbVonFloatVectorundInt&lt;20&gt; bsp20;
SetVonBlubbVonFloatVectorundInt&lt;13&gt; bsp13;
}
</code></pre>
<p>waere ein Kunstrukt dieser Art moeglich?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291255</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 24 May 2007 08:41:12 GMT</pubDate></item><item><title><![CDATA[Reply to template typedefs moeglich? on Thu, 24 May 2007 09:12:41 GMT]]></title><description><![CDATA[<p>Momentan leider nicht.</p>
<p>Ausweichmöglichkeit:</p>
<pre><code class="language-cpp">template &lt;int N&gt; 
struct Helper {
   typedef std::set&lt; Blubb&lt; int, std::vector&lt;float&gt;, N&gt; &gt; SetVonBlubbVonFloatVectorundInt;
}

int main()
{
   Helper::SetVonBlubbVonFloatVectorundInt&lt;20&gt; bsp20;
   Helper::SetVonBlubbVonFloatVectorundInt&lt;13&gt; bsp13;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1291275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291275</guid><dc:creator><![CDATA[Helium]]></dc:creator><pubDate>Thu, 24 May 2007 09:12:41 GMT</pubDate></item><item><title><![CDATA[Reply to template typedefs moeglich? on Thu, 24 May 2007 09:21:05 GMT]]></title><description><![CDATA[<p>Nicht eher</p>
<p>Helper&lt;20&gt;::Setvon ....?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291281</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Thu, 24 May 2007 09:21:05 GMT</pubDate></item><item><title><![CDATA[Reply to template typedefs moeglich? on Thu, 24 May 2007 10:24:37 GMT]]></title><description><![CDATA[<p>Doch natürlich.</p>
<p>Copy&amp;Paste halt <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="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291301</guid><dc:creator><![CDATA[Helium]]></dc:creator><pubDate>Thu, 24 May 2007 10:24:37 GMT</pubDate></item></channel></rss>