Placement syntax: Difference between revisions

Content deleted Content added
Minor type. New should have been lowercase.
Line 1:
 
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>
 
Line 177 ⟶ 176:
This would be employed in a program as follows:<ref name=Anderson1 /><ref name=Yongwei1 />
:<source lang="cpp" enclose=div>
T * p = Newnew T ;
</source>