Overloading all new and delete operators
I am working on a small exercise to overload new and delete operator to keep track of what pointers are allocated and what are deleted.
I am able to overload one form of new operator .
TAny* operator new(TUint size )
I need your suggestion on this exercise.
I am planning to maintain a linked list of nodes containing what pointers are allocated with what size.
on every delete i will search that node by pointer address and remove from the list and also deallocate that pointer.
i am looking for your suggestions.
kinldy share your experience with me.
thanks and regards