std.experimental.allocator.building_blocks.free_list.FreeList.max - multiple declarations
Function FreeList.max
Returns the largest allocation size eligible for allocation from the
freelist. (If maxSize != chooseAtRuntime, this is simply an alias
for maxSize.) All allocation requests for sizes greater than or
equal to min and less than or equal to max are rounded to max and forwarded to the parent allocator. When the block fitting the
same constraint gets deallocated, it is put in the freelist with the
allocated size assumed to be max.
size_t max() const @property;
Function FreeList.max
If FreeList has been instantiated with maxSize ==
chooseAtRuntime, then the max property is writable. Setting it
must precede any allocation.
void max
(
size_t high
) @property;
Parameters
| Name | Description |
|---|---|
| high | new value for max |
Precondition
high >= min, or minSize == chooseAtRuntime and
min has not yet been initialized. Also high >= (void*). Also, no allocation has been yet done with this allocator.
Postcondition
max == high