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) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com