std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::deallocate
來自 cppreference.com
< 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> 的公共靜態成員函式) |