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 static | allocates uninitialized storage using the allocator (public static member function) |
---|---|
deallocate | deallocates storage (public member function of std::allocator) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。