Placement syntax: Difference between revisions

Content deleted Content added
Undid revision 286791445 by 76.10.185.237 (talk): Introduction of an error. The case was correct as it originally stood.
Line 99:
 
=== Custom allocators ===
Placement syntax is also employed for custom [[allocator (C++)|allocators]]. This does not use any of the allocator and deallocator functions from the Standard C++ library header <code>&lt;new&gt;</code>, but requires that programmers write their own allocation and deallocation functions, overloaded for user-defined types. For example, one could define a memory management class as follows:<ref name=TCPPPL /><ref name=Vermeir1 />
:<source lang="cpp" enclose=div>
#include <cstdlib>