<?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[new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;)]]></title><description><![CDATA[<p>/edit pumuckl: <strong>Originalthread:</strong> <a href="http://www.c-plusplus.net/forum/292359" rel="nofollow">http://www.c-plusplus.net/forum/292359</a></p>
<p>pumuckl schrieb:</p>
<blockquote>
<ol start="2">
<li>dynamisch erstellen hast du schon gut hinbekommen.</li>
</ol>
</blockquote>
<p>Ähm nein, das heißt in C++ <code>std::vector</code> .</p>
<p>EDIT: Hmm, das Tutorial sagt nur, dass es wohl irgendwelche &quot;smart pointer&quot; gibt, was mit der Array-Problematik gar nichts zu tun hat. Im Kontext des Tutorials wurde alles richtig gemacht (da vermutlich noch keine Ausnahmen eingeführt wurden). Allgemein ist das aber eine schlechte Lösung.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/292362/new-new-vector-und-allokatoren-split-von-quot-ich-komm-nicht-weiter-quot</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 03:39:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/292362.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Sep 2011 09:40:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 11:50:38 GMT]]></title><description><![CDATA[<p>/edit pumuckl: <strong>Originalthread:</strong> <a href="http://www.c-plusplus.net/forum/292359" rel="nofollow">http://www.c-plusplus.net/forum/292359</a></p>
<p>pumuckl schrieb:</p>
<blockquote>
<ol start="2">
<li>dynamisch erstellen hast du schon gut hinbekommen.</li>
</ol>
</blockquote>
<p>Ähm nein, das heißt in C++ <code>std::vector</code> .</p>
<p>EDIT: Hmm, das Tutorial sagt nur, dass es wohl irgendwelche &quot;smart pointer&quot; gibt, was mit der Array-Problematik gar nichts zu tun hat. Im Kontext des Tutorials wurde alles richtig gemacht (da vermutlich noch keine Ausnahmen eingeführt wurden). Allgemein ist das aber eine schlechte Lösung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116546</guid><dc:creator><![CDATA[TyRoXx]]></dc:creator><pubDate>Thu, 08 Sep 2011 11:50:38 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 09:47:11 GMT]]></title><description><![CDATA[<p>TyRoXx schrieb:</p>
<blockquote>
<p>pumuckl schrieb:</p>
<blockquote>
<ol start="2">
<li>dynamisch erstellen hast du schon gut hinbekommen.</li>
</ol>
</blockquote>
<p>Ähm nein, das heißt in C++ <code>std::vector</code> .</p>
</blockquote>
<p>Ähm nein, er fängt gerade an und sollte ruhig auch mal ein normales Array kennenlernen. Wie traurig wäre das, wenn er ein Meister im Umgang mit std::vector wäre, und an der simplen Syntax eines Standard-Arrays scheitern würde. Zumal ich davon ausgehe, dass der Aufgabensteller ein eben solches Array gemeint hat und ein Vergleichen mit der Musterlösung (wenn es sowas da gibt) mit std::vector wohl kaum Erfolg hätte.</p>
<p>Bei manchen C++-Puristen hier bekomme ich manchmal den Eindruck, dass std::vector noch vor Kontrollstrukturen gelernt werden soll. Am besten auf Seite 1 im C++-Buch, noch vor der Einleitung, oder wie? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2116550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116550</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 08 Sep 2011 09:47:11 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 09:49:34 GMT]]></title><description><![CDATA[<p>TyRoXx schrieb:</p>
<blockquote>
<p>pumuckl schrieb:</p>
<blockquote>
<ol start="2">
<li>dynamisch erstellen hast du schon gut hinbekommen.</li>
</ol>
</blockquote>
<p>Ähm nein, das heißt in C++ <code>std::vector</code> .</p>
</blockquote>
<p>Da ist die Aufgabenstellung fragwürdig, ja. Aber nachdem in der Aufgabe &quot;Array dynamisch erstellen&quot; steht und nicht &quot;container&quot; oder &quot;vector&quot;, hat er den Teil der Aufgabe völlig richtig gelöst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116551</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116551</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 08 Sep 2011 09:49:34 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 09:50:12 GMT]]></title><description><![CDATA[<p>TyRoXx schrieb:</p>
<blockquote>
<p>pumuckl schrieb:</p>
<blockquote>
<ol start="2">
<li>dynamisch erstellen hast du schon gut hinbekommen.</li>
</ol>
</blockquote>
<p>Ähm nein, das heißt in C++ <code>std::vector</code> .</p>
</blockquote>
<p>Wenn mich nicht alles täuscht sind new und delete Bestandteil von c++, aber nicht von c. Wenn man c++ lernt, sollte man auch das Benutzen von new und delete üben, weil man so die Funktionsweise von std::vector und anderen containern besser nachvollziehen kann (und manchmal macht es auch durchaus Sinn, new und delete direkt zu verwenden, etwa wenn man einen neuen container braucht).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116552</guid><dc:creator><![CDATA[GorbGorb]]></dc:creator><pubDate>Thu, 08 Sep 2011 09:50:12 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 09:54:18 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>Ähm nein, er fängt gerade an und sollte ruhig auch mal ein normales Array kennenlernen. Wie traurig wäre das, wenn er ein Meister im Umgang mit std::vector wäre, und an der simplen Syntax eines Standard-Arrays scheitern würde. Zumal ich davon ausgehe, dass der Aufgabensteller ein eben solches Array gemeint hat und ein Vergleichen mit der Musterlösung (wenn es sowas da gibt) mit std::vector wohl kaum Erfolg hätte.</p>
<p>Bei manchen C++-Puristen hier bekomme ich manchmal den Eindruck, dass std::vector noch vor Kontrollstrukturen gelernt werden soll. Am besten auf Seite 1 im C++-Buch, noch vor der Einleitung, oder wie? <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>
</blockquote>
<p>Warum wäre das traurig? Kein Mensch braucht <code>new[]</code> . Niemand. Wirklich nicht. Selbst <code>vector</code> wird anders implementiert.<br />
Es ist eher traurig, dass Anfänger so früh mit manueller Speicherverwaltung verwirrt werden, anstatt ihnen die Vorzüge von Klassen(-Templates) wie <code>std::vector</code> zu zeigen.<br />
Ich habe schon verstanden, was für eine Lösung die Aufgabe suggeriert, aber die Lösung ist nicht <em>gut</em>. Sie erfüllt ihren Zweck, aber man lernt dadurch nichts außer der Syntax für rohe Arrays.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116553</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116553</guid><dc:creator><![CDATA[TyRoXx]]></dc:creator><pubDate>Thu, 08 Sep 2011 09:54:18 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 09:59:28 GMT]]></title><description><![CDATA[<p>TyRoXx schrieb:</p>
<blockquote>
<p>Sie erfüllt ihren Zweck, aber man lernt dadurch nichts außer der Syntax für rohe Arrays.</p>
</blockquote>
<p>Wie GorbGorb bereits geschrieben hat, das ist ein Bestandteil von C++ und trägt zum Sprachverständnis bei. Was ist denn daran auszusetzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116557</guid><dc:creator><![CDATA[*Rewind*]]></dc:creator><pubDate>Thu, 08 Sep 2011 09:59:28 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:02:23 GMT]]></title><description><![CDATA[<p>TyRoXx schrieb:</p>
<blockquote>
<p>Warum wäre das traurig? Kein Mensch braucht <code>new[]</code> . Niemand. Wirklich nicht.</p>
</blockquote>
<p>Quatsch. Man kann sich nicht immer aussuchen, was man braucht und was nicht. Wer im stillen Kämmerlein für sich alleine programmiert, kann vielleicht machen, was er will. Dann kann man auch einfach mal einige Grundlagen der Sprache ausblenden. Wer aber z.B. beruflich programmiert, muss sich an bestehende Strukturen halten. Da kann man sich dann plötzlich nicht mehr alles aussuchen. Und manchmal muss man einfach auch mit SDKs arbeiten, die verlangen, dass man per new/new[]/malloc Speicher reserviert, um bestimmte Funktionen zu nutzen. Oder man muss Funktionen umschreiben, die mit new arbeiten. Wenn dann auch noch die Zeit drückt, kann man nicht mal eben den Weltverbesserer spielen und alles umschreiben, nur weil man mit Arrays nicht vertraut ist oder sie nicht mag (aus verständlichen Gründen, zugegeben, aber das ist dann ziemlich egal).</p>
<p>TyRoXx schrieb:</p>
<blockquote>
<p>Selbst <code>vector</code> wird anders implementiert.</p>
</blockquote>
<p>Wie denn, mit malloc? <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="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116560</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:02:23 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:04:03 GMT]]></title><description><![CDATA[<p>TyRoXx schrieb:</p>
<blockquote>
<p>aber man lernt dadurch nichts außer der Syntax für rohe Arrays.</p>
</blockquote>
<p>Witzig. Du suggerierst irgendwie, dass man nichts lernt. Und im gleichen Satz erklärst du, was man dabei lernt. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2116561</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116561</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:04:03 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:07:24 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>TyRoXx schrieb:</p>
<blockquote>
<p>aber man lernt dadurch nichts außer der Syntax für rohe Arrays.</p>
</blockquote>
<p>Witzig. Du suggerierst irgendwie, dass man nichts lernt. Und im gleichen Satz erklärst du, was man dabei lernt. <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>
</blockquote>
<p>Was ist an &quot;nichts außer&quot; unverständlich?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116566</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116566</guid><dc:creator><![CDATA[TyRoXx]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:07:24 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:08:08 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>TyRoXx schrieb:</p>
<blockquote>
<p>Selbst <code>vector</code> wird anders implementiert.</p>
</blockquote>
<p>Wie denn, mit malloc? <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="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p><a href="http://www.cplusplus.com/reference/std/memory/allocator/" rel="nofollow">http://www.cplusplus.com/reference/std/memory/allocator/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116567</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:15:57 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>Wer aber z.B. beruflich programmiert, muss sich an bestehende Strukturen halten. Da kann man sich dann plötzlich nicht mehr alles aussuchen. Und manchmal muss man einfach auch mit SDKs arbeiten, die verlangen, dass man per new/new[]/malloc Speicher reserviert, um bestimmte Funktionen zu nutzen.</p>
</blockquote>
<p>Mal ganz abgesehen davon, dass derartige SDKs in die Tonne gehören, richten sich die ersten Kapitel eines Tutorials nicht an berufliche Programmierer. Die Array-Syntax kann gerne später erwähnt werden, weil man sie kennen sollte. Aber das ist kein einfacher oder sicherer Weg, ein allgemeines Array zu erstellen. Als aufmerksamer Leser in diesem Forum solltest du auch mitbekommen haben, dass viele Anfänger mit <code>new/[]</code> und <code>delete/[]</code> überfordert sind. Solche Feinheiten sollte man lernen, wenn man die Grundlagen verstanden hat.<br />
Na immerhin erwähnt das Tutorial <code>auto_ptr</code> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116569</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116569</guid><dc:creator><![CDATA[TyRoXx]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:15:57 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:16:03 GMT]]></title><description><![CDATA[<p>TyRoXx schrieb:</p>
<blockquote>
<p>Selbst <code>vector</code> wird anders implementiert.</p>
</blockquote>
<blockquote>
<p>Allocators are classes that define memory models to be used by some parts of the Standard Library, and most specifically, <strong>by STL containers</strong>.</p>
</blockquote>
<p><strong>allocator::allocate</strong>:</p>
<blockquote>
<p>In the default allocator, the block of storage is allocated using ::operator <strong>new</strong> one or more times, [...]</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2116570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116570</guid><dc:creator><![CDATA[*Rewind*]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:16:03 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:18:43 GMT]]></title><description><![CDATA[<p>TyRoXx schrieb:</p>
<blockquote>
<p>Mal ganz abgesehen davon, dass derartige SDKs in die Tonne gehören</p>
</blockquote>
<p>Wie gesagt, das Leben ist kein Ponyhof. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>TyRoXx schrieb:</p>
<blockquote>
<p>Solche Feinheiten sollte man lernen, wenn man die Grundlagen verstanden hat.</p>
</blockquote>
<p>Das sind Grundlagen, ob du es einsehen willst, oder nicht. <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/2116573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116573</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:18:43 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:20:18 GMT]]></title><description><![CDATA[<p>[Rewind] schrieb:</p>
<blockquote>
<blockquote>
<p>In the default allocator, the block of storage is allocated using ::operator <strong>new</strong> one or more times, [...]</p>
</blockquote>
</blockquote>
<p>War doch klar... <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="😃"
    /> Aber der gemeine Purist blendet es aus. Nein, nein, es gibt kein new in meiner Welt, oh nein... <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2116574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116574</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:20:18 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:20:37 GMT]]></title><description><![CDATA[<p>[Rewind] schrieb:</p>
<blockquote>
<p>TyRoXx schrieb:</p>
<blockquote>
<p>Selbst <code>vector</code> wird anders implementiert.</p>
</blockquote>
<blockquote>
<p>Allocators are classes that define memory models to be used by some parts of the Standard Library, and most specifically, <strong>by STL containers</strong>.</p>
</blockquote>
<p><strong>allocator::allocate</strong>:</p>
<blockquote>
<p>In the default allocator, the block of storage is allocated using ::operator <strong>new</strong> one or more times, [...]</p>
</blockquote>
</blockquote>
<p>Trotzdem, oder gerade deswegen, wird vector ohne new[] implementiert und wenn du beim Programmieren einer Containerklasse ein new, delete, malloc oder free für die gespeicherten Elemente benutzt, dann machst du etwas sehr sehr falsch. Erst der Allocatorprogrammierer braucht sich darum Gedanken zu machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116575</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:20:37 GMT</pubDate></item><item><title><![CDATA[Reply to new[], new, vector und Allokatoren (split von &amp;quot;Ich komm nicht weiter =(&amp;quot;) on Thu, 08 Sep 2011 10:25:11 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>[Rewind] schrieb:</p>
<blockquote>
<blockquote>
<p>In the default allocator, the block of storage is allocated using ::operator <strong>new</strong> one or more times, [...]</p>
</blockquote>
</blockquote>
<p>War doch klar... <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="😃"
    /> Aber der gemeine Purist blendet es aus. Nein, nein, es gibt kein new in meiner Welt, oh nein... <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>
</blockquote>
<p>Bin ich hier gemeint? Ich bezog mich auf <code>new[]</code> , einen ganz anderen Operator. <code>new[]</code> wird nicht verwendet, nicht einmal von <code>std::allocator</code> (würde auch gar nicht funktionieren).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2116578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2116578</guid><dc:creator><![CDATA[TyRoXx]]></dc:creator><pubDate>Thu, 08 Sep 2011 10:25:11 GMT</pubDate></item></channel></rss>