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


rts_alloc Class

The rts_alloc template class describes a filter that holds an array of cache instances and determines which instance to use for allocation and deallocation at runtime instead of at compile time.

template <class Cache> class rts_alloc

Parameters

Parameter

Description

Cache

The type of cache instances contained in the array. This can be cache_chunklist Class, cache_freelist, or cache_suballoc.

Remarks

This template class holds multiple block allocator instances and determines which instance to use for allocation or deallocation at runtime instead of at compile time. It is used with compilers that cannot compile rebind.

Member Functions

allocate

Allocates a block of memory.

deallocate

Frees a specified number of objects from storage beginning at a specified position.

equals

Compares two caches for equality.

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

ALLOCATOR_DECL (<allocators>)

<allocators>