Luna::Allocator
The default allocator implementation that can be used for allocating memory for containers defined in Runtime module.
class Luna::Allocator
The default allocator allocates memory by calling memalloc, and deallocates memory by calling memfree.
Member functions
-
Allocates memory for the specified number of elements.
-
void deallocate(_Ty *ptr, usize n=1)
Deallocates memory allocated from allocate.