在线文档教程
C++
动态内存管理 | Dynamic memory management

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

另见

deallocatedeallocates storage (public member function of std::allocator)
deallocate staticdeallocates storage using the allocator (public static member function of std::allocator_traits)

© cppreference.com

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

http://en.cppreference.com/w/cpp/Memory/作用域[医]分配器[医]适配器/释放