std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::deallocate
来自 cppreference.cn
< cpp | memory | scoped allocator adaptor
定义于头文件 <scoped_allocator> |
||
void deallocate( pointer p, size_type n ) noexcept; |
(C++11 起) | |
使用外部分配器通过调用std::allocator_traits<OuterAlloc>::deallocate(outer_allocator(), p, n)来释放p
引用的存储。
[编辑] 参数
p | - | 指向先前已分配内存的指针 |
n | - | 分配内存的对象数量 |
[编辑] 返回值
(无)
[编辑] 参阅
释放存储 ( std::allocator<T> 的公共成员函数) | |
[静态] |
使用分配器释放存储 ( std::allocator_traits<Alloc> 的公共静态成员函数) |