allocator_fixed_size Class
描述控制存储分配和释放类型 Type 对象的使用一个缓存与 max_fixed_size管理长度的类型 cache_freelist 的对象。
template <class Type>
class allocator_fixed_size;
参数
Parameter |
说明 |
---|---|
Type |
分配器分配的元素类型。 |
备注
ALLOCATOR_DECL (<allocators>) 宏通过此选件类为以下语句的 name 参数: ALLOCATOR_DECL(CACHE_FREELIST(stdext::allocators::max_fixed_size<10>), SYNC_DEFAULT, allocator_fixed_size);
要求
标头: <allocators>
命名空间: stdext