Content deleted Content added
Hans Adler (talk | contribs) grammar; also result is not just cast but also initialized (depending on the style of invocation?? I am not a C++ programmer) |
Scott Bowden (talk | contribs) No edit summary |
||
Line 1:
{{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.
|