<?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[Was sind &amp;quot;allocator&amp;quot;]]></title><description><![CDATA[<p>Hi,</p>
<p>wenn ich mit der STL arbeite komme sehe ich immer wieder das Wort &quot;Allocator&quot;, was ist das? Ich habe versucht den Wikipedia Artikel zu verstehen aber irgendwie ist das alles sehr abstrakt und schwer zu verstehen, <a href="http://en.wikipedia.org/wiki/Allocator_(C++)" rel="nofollow">http://en.wikipedia.org/wiki/Allocator_(C++)</a></p>
<p>Kann das jemand einfach erklaeren?</p>
<p><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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/321583/was-sind-quot-allocator-quot</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 13:38:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/321583.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Nov 2013 13:39:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Was sind &amp;quot;allocator&amp;quot; on Sun, 17 Nov 2013 13:39:39 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>wenn ich mit der STL arbeite komme sehe ich immer wieder das Wort &quot;Allocator&quot;, was ist das? Ich habe versucht den Wikipedia Artikel zu verstehen aber irgendwie ist das alles sehr abstrakt und schwer zu verstehen, <a href="http://en.wikipedia.org/wiki/Allocator_(C++)" rel="nofollow">http://en.wikipedia.org/wiki/Allocator_(C++)</a></p>
<p>Kann das jemand einfach erklaeren?</p>
<p><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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2365995</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2365995</guid><dc:creator><![CDATA[CIP]]></dc:creator><pubDate>Sun, 17 Nov 2013 13:39:39 GMT</pubDate></item><item><title><![CDATA[Reply to Was sind &amp;quot;allocator&amp;quot; on Sun, 17 Nov 2013 13:52:41 GMT]]></title><description><![CDATA[<p>Ein allocator reserviert Speicher und erzeugt darin Objekte.<br />
std::allocator ist hauptsächlich ein Wrapper um die verschiedenen new- und delete-operatoren.<br />
Normalerweise reicht der Standard-Allocator aus, aber wenn man eine hohe Geschwindigkeit braucht und viele new-calls hat, kann man dadurch Zeit einsparen, z.B. indem man aus einem memory-pool alloziiert (siehe boost).</p>
<p>Selber habe ich erst einmal einen eigenen Allocator geschrieben, nämlich einen der Speicher in Blöcken reserviert, um std::list so etwas zu beschleunigen, und das habe ich auch nur gemacht, weil man den Geschwindigkeitsunterschied nicht nur gemessen, sondern sogar schon gemerkt hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2365997</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2365997</guid><dc:creator><![CDATA[Marthog]]></dc:creator><pubDate>Sun, 17 Nov 2013 13:52:41 GMT</pubDate></item><item><title><![CDATA[Reply to Was sind &amp;quot;allocator&amp;quot; on Mon, 18 Nov 2013 00:18:04 GMT]]></title><description><![CDATA[<p>Danke! Die Erklaerung hat mir sehr weiter geholfen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366081</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366081</guid><dc:creator><![CDATA[CIP]]></dc:creator><pubDate>Mon, 18 Nov 2013 00:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to Was sind &amp;quot;allocator&amp;quot; on Mon, 18 Nov 2013 11:08:45 GMT]]></title><description><![CDATA[<p>bzw. wenn du ihn noch hast den Sourcecode zu deinem selbst geschriebenen allocator kannst du ihn ja mal posten, mich wuerde das sehr interessieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366140</guid><dc:creator><![CDATA[CIP]]></dc:creator><pubDate>Mon, 18 Nov 2013 11:08:45 GMT</pubDate></item></channel></rss>