scoped_allocator_adaptor::deallocate 方法

使用 extern 分配器,释放对象。

void deallocate(pointer ptr, size_type count);

参数

  • ptr
    要解除分配对象的起始位置的指针。

  • count
    释放对象的数量。

要求

页眉: <scoped_allocator>

命名空间: std

请参见

参考

scoped_allocator_adaptor 类

allocator_traits::deallocate 方法