首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::allocator_traits::deallocate

Defined in header <memory>

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)

代码语言:txt
复制
 © cppreference.com

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

扫码关注腾讯云开发者

领取腾讯云代金券