cbase 1.50.0
C/C++ Static Template
Loading...
Searching...
No Matches
General Purpose Allocator

Implementation of a non-linear heap allocator. More...

Functions

MemAllocator mem_gpalloc (void)
 Retrieves the generic allocator interface for the GP Allocator.

Detailed Description

Implementation of a non-linear heap allocator.

Function Documentation

◆ mem_gpalloc()

MemAllocator mem_gpalloc ( void )

Retrieves the generic allocator interface for the GP Allocator.

  • Unlike Arenas, the default GP allocator typically uses standard OS heap boundaries (e.g. standard malloc/free wrappers under the hood), and does not require a localized context struct.
Returns
A MemAllocator interface pointing to the GP allocator functions.