C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.
                                    -♦-