AllocatorsΒΆ
Allocators are the fundamental object used to allocate and deallocate memory using Umpire.
-
class
Allocator
Provides a unified interface to allocate and free data.
An Allocator encapsulates all the details of how and where allocations will be made, and can also be used to introspect the memory resource. Allocator objects do not return typed allocations, so the pointer returned from the allocate method must be cast to the relevant type.