Megosztás a következőn keresztül:


max_fixed_size Class

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

template <std::size_t Max> class max_fixed_size

Parameters

Parameter

Description

Max

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

Constructors

max_fixed_size

Constructs an object of type max_fixed_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>