FreeList.max

If FreeList has been instantiated with maxSize == chooseAtRuntime, then the max property is writable. Setting it must precede any allocation.

  1. size_t max [@property getter]
  2. size_t max [@property setter]
    struct FreeList(ParentAllocator, size_t minSize, size_t maxSize = minSize, Flag!"adaptive" adaptive = No.adaptive)
    @property
    static if(maxSize == chooseAtRuntime)
    void
    max
    (
    size_t high
    )
  3. alias max = maxSize

Parameters

high size_t

new value for max

Precondition: high >= min, or minSize == chooseAtRuntime and min has not yet been initialized. Also high >= (void*).sizeof. Also, no allocation has been yet done with this allocator.

Postcondition: max == high

Meta