分配内存块。
void *allocate(std::size_t _Count);
参数
Parameter |
说明 |
---|---|
_Count |
元素数。将数组的。 |
返回值
对分配的对象的指针。
备注
成员函数返回 caches[_IDX].allocate(_Count),依赖于索引 _IDX 请求完全程序范围 _Count,,或者,如果 _Count 太大,它将返回 operator new(_Count)。cache,表示缓存对象。
要求
**标题:**allocators
命名空间: stdext