Export (0) Print
Expand All

freelist Class

Manages a list of memory blocks.

template <std::size_t Sz, class Max> class freelist
    : public Max

Parameter

Description

Sz

The number of elements in the array to be allocated.

Max

The max class representing the maximum number of elements to be stored in the free list. The max class can be max_none, max_unbounded, max_fixed_size, or max_variable_size.

This template class manages a list of memory blocks of size Sz with the maximum length of the list determined by the max class passed in Max.

freelist

Constructs an object of type freelist.

pop

Removes the first memory block from the free list.

push

Adds a memory block to the list.

Header: <allocators>

Namespace: stdext

Show:
© 2014 Microsoft