cppreference.com
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::experimental::pmr::polymorphic_allocator<T>::
destroy
From cppreference.com
<
cpp
|
experimental
|
polymorphic allocator
C++
Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros
(C++20)
Language support library
Concepts library
(C++20)
Diagnostics library
Memory management library
Metaprogramming library
(C++11)
General utilities library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Strings library
Text processing library
Numerics library
Date and time library
Input/output library
Filesystem library
(C++17)
Concurrency support library
(C++11)
Execution control library
(C++26)
Technical specifications
Symbols index
External libraries
[edit]
Library fundamentals
experimental::optional
experimental::any
experimental::basic_string_view
experimental::sample
experimental::shared_ptr
experimental::weak_ptr
experimental::apply
experimental::invocation_type
experimental::raw_invocation_type
experimental::search
experimental::default_searcher
experimental::make_default_searcher
experimental::boyer_moore_searcher
experimental::make_boyer_moore_searcher
experimental::boyer_moore_horspool_searcher
experimental::make_boyer_moore_horspool_searcher
Type-erased and polymorphic allocators
Variable templates for type traits
[edit]
Polymorphic allocator library
polymorphic_allocator
Convenience aliases for containers using
polymorphic_allocator
Memory resource classes
memory_resource
synchronized_pool_resource
unsynchronized_pool_resource
monotonic_buffer_resource
resource_adaptor
Global memory resources
new_delete_resource
null_memory_resource
get_default_resource
set_default_resource
Type-erased allocator support for existing classes
function
packaged_task
promise
[edit]
std::experimental::pmr::polymorphic_allocator
Member functions
polymorphic_allocator::polymorphic_allocator
polymorphic_allocator::operator=
polymorphic_allocator::allocate
polymorphic_allocator::deallocate
polymorphic_allocator::construct
polymorphic_allocator::destroy
polymorphic_allocator::select_on_container_copy_construction
polymorphic_allocator::resource
Non-member functions
operator==
operator!=
[edit]
template
<
class
U
>
void
destroy
(
U
*
p
)
;
(library fundamentals TS)
Destroys the object pointed to by
p
, as if by calling
p
-
>
~U
(
)
.
[
edit
]
Parameters
p
-
pointer to the object being destroyed
[
edit
]
See also
destroy
[static]
destructs an object stored in the allocated storage
(function template)
[edit]
Category
:
Noindexed pages