std::pmr::memory_resource::deallocate
void deallocate(void* p, std::size_t bytes, std::size_t alignment = alignof(std::max_align_t)); | | (since C++17) |
|---|
分配由p...p应已通过先前的一次呼叫返回allocate(bytes, alignment)在...上memory_resource相当于*this,而它所指向的存储空间还没有被释放。
相当于do_deallocate(p, bytes, alignment);...
例外
什么都没扔。
另见
do_deallocate virtual | deallocates memory (virtual private member function) |
|---|
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

