Namespaces
Variants
Views
Actions

std::allocator::deallocate

From cppreference.com
< cpp‎ | memory‎ | allocator
Revision as of 18:07, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <memory>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td class="t-dcl-nopad">
void deallocate(pointer p, size_type n);
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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

Template:cpp/memory/allocator/dcl list allocateTemplate:cpp/memory/allocator traits/dcl list deallocate