std::pmr::polymorphic_allocator<T>::delete_object - cppreference.com
来自cppreference.com
template< class U > void delete_object( U* p ); |
(C++20 起) | |
销毁 U 类型对象并解分配为它分配的存储。
等价于
std::allocator_traits<polymorphic_allocator>::destroy(*this, p); deallocate_object(p);
参数
异常
不抛出。
注解
引入此函数是为了用于全特化分配器 std::pmr::polymorphic_allocator<>,但它可能在任何特化中都有用。