Namespaces
Variants
Views
Actions

std::allocator_traits::deallocate

From cppreference.com
< cpp‎ | memory‎ | allocator traits
Revision as of 17:46, 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 >
static void deallocate( Alloc& a, pointer p, size_type n );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Uses the allocator a to deallocate the storage referenced by p, by calling a.deallocate(p, n)


Parameters

a - allocator to use
p - pointer to the previously allocated storage
n - the number of objects the storage was allocated for

Return value

(none)

See also

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