共用方式為


max_none Class

Describes a max class object that limits a freelist object to a maximum length of zero.

template <std::size_t Max> class max_none

Parameters

Parameter

Description

Max

The max class that determines the maximum number of elements to store in the freelist.

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>