分配内存块。
void *allocate(std::size_t _Count);
参数
Parameter |
说明 |
---|---|
_Count |
元素数。将数组的。 |
返回值
对分配的对象的指针。
备注
成员函数锁定 mutex,调用 cache.allocate(_Count),打开 mutex,然后返回结果的早期调用对 cache.allocate(_Count)。cache 表示当前缓存对象。
要求
**标题:**allocators
命名空间: stdext
分配内存块。
void *allocate(std::size_t _Count);
Parameter |
说明 |
---|---|
_Count |
元素数。将数组的。 |
对分配的对象的指针。
成员函数锁定 mutex,调用 cache.allocate(_Count),打开 mutex,然后返回结果的早期调用对 cache.allocate(_Count)。cache 表示当前缓存对象。
**标题:**allocators
命名空间: stdext