Export (0) Print
Expand All

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

Parameter

Description

Cache

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

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.

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.

Header: <allocators>

Namespace: stdext

Show:
© 2014 Microsoft