overloading operator new
I've searched through 80+ messages of this boards, but I've found no answer.
What is the syntax to overload operator new ? This is for a memory manager, so I'd like an operator new which is called exactly like the ordinary one, and which does the same thing, except that instead of using the standard routine to allocate the memory block, is uses my own Alloc routine, which I've already written.
In particular, the constructors of the objects newed should be called, as with the ordinary operator new.
Do you know any tutorial ? Else, could you post some code ? Thanks !
I've searched "Overload operator new" in google and I've found many interresting papers ! I'm so sorry to have posted a question here, whereas the answer was so easy to find elsewhere. On the other hand, having unsuccesfully searched intensively on this forum, I didn't expect to find the answer on google ! Yet for my other question (on pointers), I've still no answer.