std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::destroy
From cppreference.com
< cpp | memory | scoped allocator adaptor
C++
Memory management library
|
|
|
std::scoped_allocator_adaptor
Member functions | ||||
scoped_allocator_adaptor::destroy | ||||
Non-member functions | ||||
(until C++20)
|
||||
Deduction guides(C++17) |
Defined in header <scoped_allocator>
|
||
template
<
class T >
void destroy( T* p ) ; |
(since C++11) | |
Uses the outer allocator to call the destructor of the object pointed to by p, by calling
std::allocator_traits <OUTERMOST> :: destroy (OUTERMOST( *this), p)
where OUTERMOST is the type that would be returned by calling this->outer_allocator(), and then calling the outer_allocator()
Parameters
p | - | pointer to the object that is going to be destroyed |
Return value
(none)
See also
[static]
|
destructs an object stored in the allocated storage (function template) |
(until C++20)
|
destructs an object in allocated storage (public member function of std::allocator<T> ) |