Namespaces
Variants
Views
Actions

std::allocator::deallocate

From cppreference.com
< cpp‎ | memory‎ | allocator
Revision as of 08:23, 3 July 2013 by P12 (Talk | contribs)

Defined in header <memory>
void deallocate( pointer p, size_type n );

Deallocates the storage referenced by the pointer p, which must be a pointer obtained by an earlier call to Template:rlpf. The argument n must be equal to the second argument of the call to Template:rlpf that originally produced p.

Calls ::operator delete(void*), but it is unspecified when and how it is called.

Parameters

p - pointer obtained from allocate()
n - number of objects earlier passed to allocate()

Return value

(none)

See also

allocates uninitialized storage
(public member function) [edit]
[static]
deallocates storage using the allocator
(public static member function of std::allocator_traits) [edit]