Namespaces
Variants
Views
Actions

std::scoped_allocator_adaptor::deallocate

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

 
 
 
 

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

<td>
Defined in header <scoped_allocator>
</td>

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

<tr class="t-dcl ">

<td >
void deallocate( pointer p, size_type n )
</td>

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

Uses the outer allocator to deallocate the storage referenced by p, by calling std::allocator_traits<OuterAlloc>::deallocate(outer_allocator(), p, n)

Contents

Parameters

p - pointer to the previously allocated memory
n - the number of objects for which the memory was allocated

Return value

(none)

Exceptions

noexcept specification:  
noexcept
  

See also

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