This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing
This article is within the scope of WikiProject C/C++, a collaborative effort to improve the coverage of C and C++ topics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.C/C++Wikipedia:WikiProject C/C++Template:WikiProject C/C++C/C++
This article has been rated as Mid-importance on the importance scale.
This article was nominated for deletion on 26 November 2008. The result of the discussion was keep.
An article on placement new is neccesary to support the article New_(C++). Before this placement new article, that "new" article was incomplete and inaccurate - for example in stating that "new" always allocated memory and that objects created by "new" were always on the heap.
Originally, I tried to have this article mirror the "new" article - and it was suggested that it be deleted because it was too much "how to". It has since been editted by myself and another (thank you Hans Adler) and is more descriptive with very little "how to" remaining.
Scott Bowden (talk) 01:47, 25 November 2008 (UTC)[reply]
Vermeir's custom allocator code
The deallocation example sourced to Vermeir is wrong. The destructor should be explicitly called as well. But it's what the source says. Uncle G (talk) 21:46, 26 November 2008 (UTC)[reply]
Despite not having contributed significantly to the article, I have nominated it for GA, as I believe it to be of reasonable quality and feel comfortable with handling any issues that may come up at the review. decltype (talk) 08:59, 9 October 2009 (UTC)[reply]
A great page overall, but I think coverage of array allocation is not very good.
The Expressions section doesn't mention new[] at all, yet the Function section refers to array new expressions, as if the reader already knew what they were.
The Custom allocators section should mention how to allocate arrays (or mention that it cannot be done and explain why). I believe it can't be done, because the new[] expression may return a different value from what the new[] function returned, so there is no way to deallocate the array when there is no delete expression.