在线文档教程
C++
动态内存管理 | Dynamic memory management

std::allocator_traits::deallocate

STD::分配器[医]特征::交易

Defined in header
static void deallocate( Alloc& a, pointer p, size_type n (since C++11)

使用分配器a若要释放引用的存储空间,请执行以下操作p,通过打电话a.deallocate(p, n)...

参数

a-allocator to use
p-pointer to the previously allocated storage
n-the number of objects the storage was allocated for

返回值

%280%29

另见

allocate staticallocates uninitialized storage using the allocator (public static member function)
deallocatedeallocates storage (public member function of std::allocator)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/Memory/allocator[医]特性/交易