SharedFreeList.minimize

Nonstandard function that minimizes the memory usage of the freelist by freeing each element in turn. Defined only if ParentAllocator defines deallocate.

struct SharedFreeList(ParentAllocator, size_t minSize, size_t maxSize = minSize, size_t approxMaxNodes = unbounded)
shared
static if(__traits(hasMember, ParentAllocator, "deallocate") && !unchecked)
void
minimize
()

Meta