G
Glen Able
I'd like to use a few different memory arenas in my current application and
to be able to specify for each allocation where it comes from. Is there any
way I can make operator new take another argument to specify which arena an
object gets allocated from. Or fake it?
e.g. I'd like to be able to write something like this:
A* myA = new_bigheap A;
A* otherA = new_fastheap A;
to be able to specify for each allocation where it comes from. Is there any
way I can make operator new take another argument to specify which arena an
object gets allocated from. Or fake it?
e.g. I'd like to be able to write something like this:
A* myA = new_bigheap A;
A* otherA = new_fastheap A;