Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

allocator::deallocate 

Frees a specified number of objects from storage beginning at a specified position.


void deallocate(
   pointer _Ptr, 
   size_type _Count
);

Parameters

_Ptr

A pointer to the first object to be deallocated from storage.

_Count

The number of objects to be deallocated from storage.

The member function frees storage for the array of count objects of type Type beginning at _Ptr, by calling operator delete(_Ptr). The pointer _Ptr must have been returned earlier by a call to allocate for an allocator object that compares equal to *this, allocating an array object of the same size and type. deallocate never throws an exception.

For an example using the member function, see allocator::allocate.

Header: <memory>

Community Additions

ADD
Show:
© 2015 Microsoft