Share via


<allocators> Members

Reference

Macros

ALLOCATOR_DECL (<allocators>)

Yields an allocator template class.

CACHE_CHUNKLIST (<allocators>)

Yields stdext::allocators::cache_chunklist<sizeof(Type)>.

CACHE_FREELIST (<allocators>)

Yields stdext::allocators::cache_freelist<sizeof(Type), max>.

CACHE_SUBALLOC (<allocators>)

Yields stdext::allocators::cache_suballoc<sizeof(Type)>.

SYNC_DEFAULT (<allocators>)

Yields a synchronization filter.

Operators

operator!= (<allocators>)

Tests for inequality between allocator objects of a specified class.

operator== (<allocators>)

Tests for equality between allocator objects of a specified class.

Classes

allocator_base

Defines the base class and common functions needed to create a user-defined allocator from a synchronization filter.

allocator_chunklist

Describes an object that manages storage allocation and freeing for objects using a cache of type cache_chunklist.

allocator_fixed_size

Describes an object that manages storage allocation and freeing for objects of type Type using a cache of type cache_freelist with a length managed by max_fixed_size.

allocator_newdel

Implements an allocator that uses operator delete to deallocate a memory block and operator new to allocate a memory block.

allocator_suballoc

Describes an object that manages storage allocation and freeing for objects of type Type using a cache of type cache_suballoc.

allocator_unbounded

Describes an object that manages storage allocation and freeing for objects of type Type using a cache of type cache_freelist with a length managed by max_unbounded.

allocator_variable_size

Describes an object that manages storage allocation and freeing for objects of type Type using a cache of type cache_freelist with a length managed by max_variable_size.

cache_chunklist

Defines a block allocator that allocates and deallocates memory blocks of a single size.

cache_freelist

Defines a block allocator that allocates and deallocates memory blocks of a single size.

cache_suballoc

Defines a block allocator that allocates and deallocates memory blocks of a single size.

freelist

Manages a list of memory blocks.

max_fixed_size

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

max_none

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

max_unbounded

Describes a max class object that does not limit the maximum length of a freelist object.

max_variable_size

Describes a max class object that limits a freelist object to a maximum length that is roughly proportional to the number of allocated memory blocks.

rts_alloc

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.

sync_none

Describes a synchronization filter that provides no synchronization.

sync_per_container

Describes a synchronization filter that provides a separate cache object for each allocator object.

sync_per_thread

Describes a synchronization filter that provides a separate cache object for each thread.

sync_shared

Describes a synchronization filter that uses a mutex to control access to a cache object that is shared by all allocators.

See Also

Reference

<allocators>