> When the statement "delete ptr;" is reached, is there a way to cause it to
> use "operator delete(void*, int)" as the underlying deallocation routine
> rather than "operator delete(void *)"?

Short and simple: No.

If you require additional environment information for the memory allocation
or deallocation, you have to store it along with the memory allocated.

A typical solution would be to allocate "one additional int" along with the
requested memory and store the "int argument" of new in there. Then, in
the delete operator, you need to extract it from there.

The above code still requires work for architectures where the alignment
restrictions for size_t are insufficient for some other objects, but it
should give you the general idea how to solve this problem.

p = new double [10], d = (double *) malloc (10 * sizeof (double));... Note that indeed the character 'AB' is of type int and most significant byte is saved in ASCII for character 'B', and the least significant ASCII for character 'A'. ... If a date is redefining global in a function, then the reference to global time can be made by the operator for resolution. ... However in C language can be done to amend the current parameters, using pointers.... Dezalocare for memory allocation and can be used in C language functions malloc and free. ...(sci.math)

Re: Simple DirectX development platform?... and then optimizes for the architecture of that machine. ...Memory allocation and deallocation tends to be slow, ...object-oriented programming tends to do a lot of it. ... and deallocation of objects. ...(comp.dsp)