Placement syntax: Difference between revisions

Content deleted Content added
That was the wrong markup.
new and delete operators really need wlinks from lede
Line 5:
<!-- For administrator use only: {{oldafdfull|page=Placement syntax|date=26 November 2008|result='''keep'''}} -->
<!-- End of AfD message, feel free to edit beyond this point -->
In the [[C++]] [[programming language]], '''placement syntax''' allows programmers to explicitly specify the [[memory management]] of individual objects &mdash; i.e. their "placement" in [[memory (computing)|memory]]. The "placement" versions of the <code>[[new (C++)|new]]</code> and <code>[[delete (C++)|delete]]</code> operators and functions are known as '''placement <code>new</code>''' and '''placement <code>delete</code>'''.<ref name=McCluskey1>{{cite web|url=http://glenmccl.com./nd_cmp.htm|title=Placement New/Delete|publisher=Glen McCluskey &amp; Associates LLC|work=C++ Language and Library|date=[[2000-06-26]]|accessdate=[[2008-11-26]]}}</ref>
 
A new ''expression'', placement or otherwise, calls a new ''function'', also known as an allocator function, whose name is <code>operator new</code>. Similarly, a delete ''expression'' calls a delete ''function'', also known as a deallocator function, whose name is <code>operator delete</code>.<ref name=Lischner1 /><ref name=Lippman1 />
Line 245:
* {{cite web|url=http://msdn.microsoft.com/en-us/library/kewsb8ba.aspx|work=[[MSDN]]|title=new Operator (C++)|publisher=[[Microsoft]]|date=|accessdate=[[2008-11-27]]}}
* {{cite web|url=http://www.devx.com/tips/Tip/12582|title=Placement new|work=Tip of the day|date=[[1998-07-18]]|author=Danny Kalev|accessdate=[[2008-11-27]]|publisher=Jupitermedia Corporation}}
 
==See also==
* <code>[[new (C++)|new]]</code>
 
[[Category:C++]]