FreeBSD Manual Pages
std::pmr::p...lete_object(3) C++ Standard Libary std::pmr::p...lete_object(3) NAME std::pmr::polymorphic_allocator::delete_object - std::pmr::polymor- phic_allocator::delete_object Synopsis template< class U > (since C++20) void delete_object( U* p ); Destroys the object of type U and deallocates storage allocated for it. Equivalent to std::allocator_traits<polymorphic_allocator>::destroy(*this, p); deallocate_object(p); Parameters p - pointer to the object to destroy and deallocate Exceptions Throws nothing. Notes This function was introduced for use with the fully-specialized al- locator std::pmr::polymorphic_allocator<>, but it may be useful in any spe- cialization. See also deallocate_bytes free raw memory obtained from allocate_bytes (C++20) (public member function) deallocate_object frees raw memory obtained by allocate_object (C++20) (public member function) deallocate deallocates storage using the allocator [static] (public static member function of std::alloca- tor_traits<Alloc>) deallocate deallocates memory (public member function of std::pmr::memory_re- source) http://cppreference.com 2024.06.10 std::pmr::p...lete_object(3)
NAME | Synopsis | Parameters | Exceptions | Notes | See also
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::pmr::polymorphic_allocator::delete_object&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>
