A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/algorithm/../memory/scoped_allocator_adaptor/destroy.html below:

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::destroy - cppreference.com

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() member function recursively on the result of this call until reaching the type that has no such member function.

[edit] Parameters p - pointer to the object that is going to be destroyed [edit] Return value

(none)

[edit] See also destructs an object stored in the allocated storage
(function template) [edit] destructs an object in allocated storage
(public member function of std::allocator<T>) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4