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. |
m →Custom allocators: add link to Allocator (C++) |
||
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><new></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>
|