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

std::scoped_allocator_adaptor::deallocate

Defined in header <scoped_allocator>

?

?

void deallocate( pointer p, size_type n );

?

(since C++11)

使用外部分配程序来释放p,通过打电话std::allocator_traits<OuterAlloc>::deallocate(outer_allocator(), p, n)...

参数

p

-

pointer to the previously allocated memory

n

-

the number of objects for which the memory was allocated

返回值

%280%29

例外

noexcept规格:

noexcept

另见

deallocate

deallocates storage (public member function of std::allocator)

deallocate static

deallocates storage using the allocator (public static member function of std::allocator_traits)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com