Placement syntax: Difference between revisions

Content deleted Content added
grammar; also result is not just cast but also initialized (depending on the style of invocation?? I am not a C++ programmer)
No edit summary
Line 1:
{{dated prod|concern = [[WP:NOTHOWTO]]|month = November|day = 20|year = 2008|time = 19:05|timestamp = 20081120190517}}
<!-- Do not use the "dated prod" template directly; the above line is generated by "subst:prod|reason" -->
{{lowercase|title=Placement new (C++)}}
In the [[C++]] [[programming language]], placement new is a form of the [[New_(C++)|new]] operator that allows object construction into an existing [[memory]] buffer. Unlike other forms of <code>new</code>, the new object does not have to be in heap [[memory]]. The [[Pointer (computing)|pointer]] returned by placement new is the [[Pointer (computing)|pointer]] provided as an argument, [[Type_conversion|cast]] to the type of the new object and possibly initialized.