std::scoped_allocator_adaptor::deallocate
STD:范围[医]分配器[医]适配器::
Defined in header | | |
---|---|---|
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。