C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Customizing the delete Operator
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
     You can write your own version of the delete operator to
     implement a customized memory-allocation scheme. The delete
     operator you define must use one of the following prototypes:
 
         void operator delete( void __near *ptr );
         void operator delete( void __far *ptr );
         void operator delete( void __huge *ptr );
         void operator delete( __segment seg, void __based(void) *ptr );
 
     You can also define class-specific versions of any of these forms
     of delete. When defining a class-specific version, you can
     specify an optional argument of type size_t. If present, the
     argument is automatically set to the size of the object being
     deleted. You cannot specify this argument when redefining the
     global version of delete.
                                    -♦-