<?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[Sortierte Struktur?]]></title><description><![CDATA[<p>hallo,</p>
<p>würde gern ne sortierte Map habe, welche aber nach prorität sortiert ist!</p>
<p>Priorität | Key | Value<br />
0 &quot;A&quot; 1<br />
0 &quot;B&quot; 3<br />
1 &quot;A&quot; 9<br />
1 &quot;A&quot; 6<br />
2 &quot;C&quot; 5<br />
2 &quot;B&quot; 8</p>
<p>wie könnte ich das in kombination mit std:map und std:set /std:list etc. realisieren?</p>
<p>wenn ich dann alle Elemente von &quot;A&quot; haben will sortiert in einer liste nach Prorität!</p>
<p>bisher habe ich es ohne prorität:</p>
<pre><code class="language-cpp">std::map&lt; std:string /* Key*/, std:list&lt;UINT&gt; /*Value*/ &gt; DATA;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/193281/sortierte-struktur</link><generator>RSS for Node</generator><lastBuildDate>Sun, 27 Sep 2026 22:18:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/193281.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Sep 2007 16:39:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sortierte Struktur? on Mon, 24 Sep 2007 16:39:28 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>würde gern ne sortierte Map habe, welche aber nach prorität sortiert ist!</p>
<p>Priorität | Key | Value<br />
0 &quot;A&quot; 1<br />
0 &quot;B&quot; 3<br />
1 &quot;A&quot; 9<br />
1 &quot;A&quot; 6<br />
2 &quot;C&quot; 5<br />
2 &quot;B&quot; 8</p>
<p>wie könnte ich das in kombination mit std:map und std:set /std:list etc. realisieren?</p>
<p>wenn ich dann alle Elemente von &quot;A&quot; haben will sortiert in einer liste nach Prorität!</p>
<p>bisher habe ich es ohne prorität:</p>
<pre><code class="language-cpp">std::map&lt; std:string /* Key*/, std:list&lt;UINT&gt; /*Value*/ &gt; DATA;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1371782</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371782</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 24 Sep 2007 16:39:28 GMT</pubDate></item><item><title><![CDATA[Reply to Sortierte Struktur? on Mon, 24 Sep 2007 16:43:36 GMT]]></title><description><![CDATA[<p>ne entsprechende vergleichsfunktion schreiben und beim konsturktor angeben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371787</guid><dc:creator><![CDATA[dermitdemcoolenanzug]]></dc:creator><pubDate>Mon, 24 Sep 2007 16:43:36 GMT</pubDate></item><item><title><![CDATA[Reply to Sortierte Struktur? on Mon, 24 Sep 2007 16:50:46 GMT]]></title><description><![CDATA[<p>wieso gibts doch container die automatisch sortieren....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371797</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 24 Sep 2007 16:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to Sortierte Struktur? on Mon, 24 Sep 2007 17:01:21 GMT]]></title><description><![CDATA[<p>den container kannst du auch weiter verwenden. schau dir mal die konstruktoren von std::map an</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371809</guid><dc:creator><![CDATA[dermitdemcoolenanzug]]></dc:creator><pubDate>Mon, 24 Sep 2007 17:01:21 GMT</pubDate></item><item><title><![CDATA[Reply to Sortierte Struktur? on Mon, 24 Sep 2007 17:02:47 GMT]]></title><description><![CDATA[<p>hmm ok.. und was hat std:set für features?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371813</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371813</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 24 Sep 2007 17:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to Sortierte Struktur? on Mon, 24 Sep 2007 17:14:06 GMT]]></title><description><![CDATA[<p>Set erlaubt glaubich keine zwei gleichen Objekte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371821</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Mon, 24 Sep 2007 17:14:06 GMT</pubDate></item><item><title><![CDATA[Reply to Sortierte Struktur? on Mon, 24 Sep 2007 17:29:52 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>std::set ist ebenfalls ein sortierter Container wie std::map, der Unterschied ist das dort der Wert auch gleich der Schlüssel ist</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371831</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371831</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 24 Sep 2007 17:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to Sortierte Struktur? on Mon, 24 Sep 2007 18:02:31 GMT]]></title><description><![CDATA[<p>Der dritte Template-Parameter gibt bei std::map die Sortierung vor (default: std::less&lt;&gt;), bei std::set der zweite.<br />
std::list speichert unsortiert. Kann zB. mit std::sort sortiert werden, auch mit Sortier-Kriterium.<br />
Wenn man doppelte Schlüssel in map und set zulassen will, gibts dafür std::multimap und std::multiset.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371855</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371855</guid><dc:creator><![CDATA[deha]]></dc:creator><pubDate>Mon, 24 Sep 2007 18:02:31 GMT</pubDate></item></channel></rss>