共用方式為


max_variable_size Class

Describes a max class object that limits a freelist object to a maximum length that is roughly proportional to the number of allocated memory blocks.

class max_variable_size

Constructors

max_variable_size

Constructs an object of type max_variable_size.

Member Functions

allocated

Increments the count of allocated memory blocks.

deallocated

Decrements the count of allocated memory blocks.

full

Returns a value that specifies whether more memory blocks should be added to the free list.

released

Decrements the count of memory blocks on the free list.

saved

Increments the count of memory blocks on the free list.

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

<allocators>