<?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 schlüssel ändern?]]></title><description><![CDATA[<p>hi<br />
wenn ich bei einer map den schlüssel jedes objektes um z.b. 5 erhöhen will, muss ich dann die ganze map kopieren und dabei nach und nach die schlüssel ändern (was bei einer gewissen grösse mit grossen datentypen bestimmt so eine zeit in anspruch nehmen kann) oder gibt es dafür einen mir unbekannten trick?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/319855/map-schlüssel-ändern</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 17:24:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/319855.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Sep 2013 14:43:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to map schlüssel ändern? on Thu, 05 Sep 2013 14:43:55 GMT]]></title><description><![CDATA[<p>hi<br />
wenn ich bei einer map den schlüssel jedes objektes um z.b. 5 erhöhen will, muss ich dann die ganze map kopieren und dabei nach und nach die schlüssel ändern (was bei einer gewissen grösse mit grossen datentypen bestimmt so eine zeit in anspruch nehmen kann) oder gibt es dafür einen mir unbekannten trick?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2350542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2350542</guid><dc:creator><![CDATA[scnr]]></dc:creator><pubDate>Thu, 05 Sep 2013 14:43:55 GMT</pubDate></item><item><title><![CDATA[Reply to map schlüssel ändern? on Thu, 05 Sep 2013 14:46:36 GMT]]></title><description><![CDATA[<p>Benutze map[key-5].</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2350543</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2350543</guid><dc:creator><![CDATA[nwp3]]></dc:creator><pubDate>Thu, 05 Sep 2013 14:46:36 GMT</pubDate></item><item><title><![CDATA[Reply to map schlüssel ändern? on Thu, 05 Sep 2013 14:49:57 GMT]]></title><description><![CDATA[<p>Warum willst du die Schlüssel ändern?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2350544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2350544</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 05 Sep 2013 14:49:57 GMT</pubDate></item><item><title><![CDATA[Reply to map schlüssel ändern? on Thu, 05 Sep 2013 14:50:33 GMT]]></title><description><![CDATA[<p>Mach eine View dafür</p>
<pre><code class="language-cpp">template &lt;typename Map&gt;
struct map_view {
  Map* m;
  typename Map::mapped_type operator[](const typename Map::key_type&amp; key)
  { return m[key - 5];
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2350546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2350546</guid><dc:creator><![CDATA[nhasd]]></dc:creator><pubDate>Thu, 05 Sep 2013 14:50:33 GMT</pubDate></item><item><title><![CDATA[Reply to map schlüssel ändern? on Thu, 05 Sep 2013 14:53:23 GMT]]></title><description><![CDATA[<p>Nimm ein Boost.Intrusive Set.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2350547</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2350547</guid><dc:creator><![CDATA[unbekannter]]></dc:creator><pubDate>Thu, 05 Sep 2013 14:53:23 GMT</pubDate></item><item><title><![CDATA[Reply to map schlüssel ändern? on Fri, 06 Sep 2013 06:11:58 GMT]]></title><description><![CDATA[<p>okay, ich arbeite nun mit einer view-klasse. danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2350668</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2350668</guid><dc:creator><![CDATA[doktor banane]]></dc:creator><pubDate>Fri, 06 Sep 2013 06:11:58 GMT</pubDate></item></channel></rss>