allocator_fixed_size 类

描述一个对象,该对象使用长度由 max_fixed_size 管理的 cache_freelist 类型的缓存来管理 Type 类型的对象的存储分配和释放

语法

template <class Type>
class allocator_fixed_size;

参数

类型
由分配器分配元素类型。

备注

ALLOCATOR_DECL 宏将这个类作为以下语句中的 name 参数进行传递:ALLOCATOR_DECL(CACHE_FREELIST(stdext::allocators::max_fixed_size<10>), SYNC_DEFAULT, allocator_fixed_size);

要求

标头:<allocators>

命名空间: stdext

另请参阅

<allocators>