<?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[Map mit welchem Typ?]]></title><description><![CDATA[<p>Ich bin ein wenig eingerostet und krieg das gerade nicht in meinem Kopf zusammen, ich brauche ein map in einer klasse, was als key ein std::pair von zwei strings und als value eni vector vom Typ T nimmt, wie sieht dann die deklaration aus?</p>
<pre><code class="language-cpp">std::map&lt;std::pair&lt;const std::string &amp;,const std::string &amp;&gt;,std::vector&lt;T&gt;&gt; configSets_;
</code></pre>
<p>oder</p>
<pre><code class="language-cpp">std::map&lt;const std::pair&lt;const std::string ,const std::string &gt; &amp;,std::vector&lt;T&gt;&gt; configSets_;
</code></pre>
<p>oder</p>
<pre><code class="language-cpp">std::map&lt;const std::pair&lt;const std::string &amp;,const std::string &amp;&gt; &amp;,std::vector&lt;T&gt;&gt; configSets_;
</code></pre>
<p>oder noch etwas anderes? Natürlich mit so wenig kopieren wie möglich<br />
So etwas wie ohne referenzen, weil die keinen Sinn ergeben? <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>
<pre><code class="language-cpp">std::map&lt;const std::pair&lt;const std::string ,const std::string &gt; ,std::vector&lt;T&gt;&gt; configSets_;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/234292/map-mit-welchem-typ</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 11:54:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/234292.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Feb 2009 07:46:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Map mit welchem Typ? on Mon, 16 Feb 2009 07:52:49 GMT]]></title><description><![CDATA[<p>Ich bin ein wenig eingerostet und krieg das gerade nicht in meinem Kopf zusammen, ich brauche ein map in einer klasse, was als key ein std::pair von zwei strings und als value eni vector vom Typ T nimmt, wie sieht dann die deklaration aus?</p>
<pre><code class="language-cpp">std::map&lt;std::pair&lt;const std::string &amp;,const std::string &amp;&gt;,std::vector&lt;T&gt;&gt; configSets_;
</code></pre>
<p>oder</p>
<pre><code class="language-cpp">std::map&lt;const std::pair&lt;const std::string ,const std::string &gt; &amp;,std::vector&lt;T&gt;&gt; configSets_;
</code></pre>
<p>oder</p>
<pre><code class="language-cpp">std::map&lt;const std::pair&lt;const std::string &amp;,const std::string &amp;&gt; &amp;,std::vector&lt;T&gt;&gt; configSets_;
</code></pre>
<p>oder noch etwas anderes? Natürlich mit so wenig kopieren wie möglich<br />
So etwas wie ohne referenzen, weil die keinen Sinn ergeben? <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>
<pre><code class="language-cpp">std::map&lt;const std::pair&lt;const std::string ,const std::string &gt; ,std::vector&lt;T&gt;&gt; configSets_;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1664508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1664508</guid><dc:creator><![CDATA[Seikilos]]></dc:creator><pubDate>Mon, 16 Feb 2009 07:52:49 GMT</pubDate></item><item><title><![CDATA[Reply to Map mit welchem Typ? on Mon, 16 Feb 2009 07:56:34 GMT]]></title><description><![CDATA[<p>Da der Key einer Map sowieso konstant ist, wie wäre es mit:</p>
<pre><code class="language-cpp">std::map&lt;std::pair&lt;std::string,std::string&gt;,std::vector&lt;T&gt; &gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1664514</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1664514</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Mon, 16 Feb 2009 07:56:34 GMT</pubDate></item><item><title><![CDATA[Reply to Map mit welchem Typ? on Mon, 16 Feb 2009 08:47:09 GMT]]></title><description><![CDATA[<p>Mal ne doofe Noob-Frage: Was ist std::pair? Und was ist der Unterschied zur std::map?<br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1664536</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1664536</guid><dc:creator><![CDATA[Rookie1337]]></dc:creator><pubDate>Mon, 16 Feb 2009 08:47:09 GMT</pubDate></item><item><title><![CDATA[Reply to Map mit welchem Typ? on Mon, 16 Feb 2009 10:07:48 GMT]]></title><description><![CDATA[<p>std::pair ist ein Datentyp der zwei Elemente halten kann und ich verwende halt zwei elemente zum referenzieren von Objekten in einer map</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1664577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1664577</guid><dc:creator><![CDATA[Seikilos]]></dc:creator><pubDate>Mon, 16 Feb 2009 10:07:48 GMT</pubDate></item></channel></rss>