<?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[Typunabhängiger Vektor]]></title><description><![CDATA[<p>Hallo zusammen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Ich bin seit einigen Wochen immer wieder am suchen und versuchen, ob es möglich ist, dass ein Vektor Elemente von mehr als einem Typ, dh. zb (int, string und double) aufnehmen kann. Es gibt bei mir zwar keinen Praxisbezug, allerdings würde mich interessieren, ob es theoretisch möglich wäre.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/274152/typunabhängiger-vektor</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 19:04:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/274152.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Sep 2010 20:12:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Typunabhängiger Vektor on Mon, 20 Sep 2010 20:12:53 GMT]]></title><description><![CDATA[<p>Hallo zusammen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Ich bin seit einigen Wochen immer wieder am suchen und versuchen, ob es möglich ist, dass ein Vektor Elemente von mehr als einem Typ, dh. zb (int, string und double) aufnehmen kann. Es gibt bei mir zwar keinen Praxisbezug, allerdings würde mich interessieren, ob es theoretisch möglich wäre.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1954992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1954992</guid><dc:creator><![CDATA[Nichtangemeldeter Nutzer]]></dc:creator><pubDate>Mon, 20 Sep 2010 20:12:53 GMT</pubDate></item><item><title><![CDATA[Reply to Typunabhängiger Vektor on Mon, 20 Sep 2010 20:17:35 GMT]]></title><description><![CDATA[<p><a href="http://www.boost.org/doc/libs/1_43_0/doc/html/variant.html" rel="nofollow">http://www.boost.org/doc/libs/1_43_0/doc/html/variant.html</a></p>
<p>Wenn man boost::variant nimmt geht das:<br />
std::vector<a href="boost::variant" rel="nofollow">boost::variant</a> oder sowas..<br />
rya.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1954996</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1954996</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Mon, 20 Sep 2010 20:17:35 GMT</pubDate></item><item><title><![CDATA[Reply to Typunabhängiger Vektor on Mon, 20 Sep 2010 20:21:53 GMT]]></title><description><![CDATA[<p>Herzlichendank für die schnelle Antwort <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> An boost hab ich jetzt auch gedacht, auch wenn ichs noch nicht genutzt habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1954998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1954998</guid><dc:creator><![CDATA[Nichtangemeldeter Nutzer]]></dc:creator><pubDate>Mon, 20 Sep 2010 20:21:53 GMT</pubDate></item><item><title><![CDATA[Reply to Typunabhängiger Vektor on Mon, 20 Sep 2010 20:29:00 GMT]]></title><description><![CDATA[<p>Wie wärs mit boost::any?</p>
<p>Ich habs gerade ausprobiert und es scheint zu funktionieren. Würde etwas dagegensprechen boost::any zu verwenden und nicht boost::variant?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1955000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1955000</guid><dc:creator><![CDATA[icarus2]]></dc:creator><pubDate>Mon, 20 Sep 2010 20:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to Typunabhängiger Vektor on Mon, 20 Sep 2010 20:36:34 GMT]]></title><description><![CDATA[<p><em>Boost.Variant</em> kannst du nehmen, wenn nur eine bestimmte Anzahl an Typen zugelassen ist. <em>Boost.Any</em> kann jeden Typen speichern (nicht ganz jeden, aber halt die &quot;üblichen&quot; wie <code>int</code> , <code>double</code> oder <code>std::string</code> ).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1955007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1955007</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Mon, 20 Sep 2010 20:36:34 GMT</pubDate></item><item><title><![CDATA[Reply to Typunabhängiger Vektor on Mon, 20 Sep 2010 20:38:18 GMT]]></title><description><![CDATA[<p>Achso, danke für die Erklärung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1955008</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1955008</guid><dc:creator><![CDATA[icarus2]]></dc:creator><pubDate>Mon, 20 Sep 2010 20:38:18 GMT</pubDate></item></channel></rss>