rts_alloc Class

Rts_alloc 模板类描述筛选器保存缓存的数组实例,并确定分配和解除分配在运行时 (而不是在编译时使用哪个实例。

template <class Cache> class rts_alloc

参数

Parameter

说明

Cache

数组中包含缓存实例的类型。 这可以是cache_chunklist Classcache_freelist,或 cache_suballoc

备注

此模板类包含多个块分配器实例,并确定哪些实例分配或解除分配在运行时 (而不是在编译时使用的。 无法编译 rebind 的编译器将使用它。

Ee292209.collapse_all(zh-cn,VS.110).gif成员函数

分配

分配内存的块。

解除分配

释放指定的数量的对象从存储开始的指定位置。

equals

比较两个缓存相等。

要求

标题: <allocators>

命名空间: stdext

请参见

参考

ALLOCATOR_DECL (<allocators>)

<allocators>

其他资源

allocators 成员