Hi,
I've been reading up on Allocators, but I am still unsure as to their exact function.
Could anybody please offer a simple explanation as the internet resources I have found are not that clear to me.
Thanks,
Darren.
Printable View
Hi,
I've been reading up on Allocators, but I am still unsure as to their exact function.
Could anybody please offer a simple explanation as the internet resources I have found are not that clear to me.
Thanks,
Darren.
An allocator controls how memory is allocated and freed, basically.
The default allocator will use new[] and delete[]. You can make your own that uses different sources for allocation, if you wish. That is the basic idea anyway.
Thanks Elysia,
That makes sense now.