The MAXON API ALIASES provides tools to safely allocate new memory. Typically it is not needed to allocate raw memory, structures like maxon::BaseArray should be used instead (see BaseArray Manual). Memory is allocated using different allocators.
For object creation see Entity Creation.
These macros allocate raw memory using the maxon::DefaultAllocator:
To safely handle memory one can use references, see maxon::AutoMem in References.
Alternatively one can use the finally macro to ensure the release of memory, see Finally.
Further memory utility tools are:
An allocator allocates and releases memory. Typically the maxon::DefaultAllocator is used. In rare cases when special memory alignment is needed, a custom allocator can be used.
If memory from the C standard lib is needed, use maxon::CStdLibAllocator.