FreeList.goodAllocSize

If maxSize == unbounded, returns parent.goodAllocSize(bytes). Otherwise, returns max for sizes in the interval [min, max], and parent.goodAllocSize(bytes) otherwise.

Precondition: If set at runtime, min and/or max must be initialized appropriately.

Postcondition: result >= bytes

struct FreeList(ParentAllocator, size_t minSize, size_t maxSize = minSize, Flag!"adaptive" adaptive = No.adaptive)
size_t
goodAllocSize
(
size_t bytes
)

Meta