Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
memory
classes:
allocator
auto_ptr
auto_ptr_ref
raw_storage_iterator
functions:
get_temporary_buffer
return_temporary_buffer
uninitialized_copy
uninitialized_fill
uninitialized_fill_n
allocator
allocator::allocator
allocator::~allocator
member functions:
allocator::address
allocator::allocate
allocator::construct
allocator::deallocate
allocator::destroy
allocator::max_size


allocator::deallocate

public member function
void deallocate (pointer p, size_type n);

Release block of storage

Releases a block of storage previously allocated with member allocate and not yet released.

The elements in the array are not destructed by a call to this member function.

In the default allocator, the block of storage is deallocated using ::operator delete.

Parameters

p
Pointer to a block of storage previously allocated with allocator::allocate.
In allocator, the member type pointer is an alias of T*.
n
Number of elements (each of size sizeof(T)) allocated on the call to allocator::allocate for this block of storage.
In allocator, the member type size_type is an alias of size_t, which is an unsigned integral type.

Return value

none

See also