The OpenD Programming Language

FreeList.minimize

Nonstandard function that minimizes the memory usage of the freelist by freeing each element in turn. Defined only if ParentAllocator defines deallocate. FreeList!(0, unbounded) does not have this function.

struct FreeList(ParentAllocator, size_t minSize, size_t maxSize = minSize, Flag!"adaptive" adaptive = No.adaptive)
static if(hasMember!(ParentAllocator, "deallocate") && !unchecked)
void
minimize
()

Meta