public static member function
<memory>

std::allocator_traits::deallocate

static void deallocate (allocator_type alloc, pointer p, size_type n);
Release block of storage
Releases a block of storage previously allocated with allocator alloc and not yet released.

The elements in the array are not destroyed by the call (see allocator_traits::destroy).

In the non-specialized definition of allocator_traits, this member function simply calls alloc.deallocate(p,n) to achieve this functionality, but a specialization for a specific allocator type may provide a different definition.

Parameters

alloc
Allocator object
allocator_type is an alias of allocator_traits's template parameter.
p
Pointer to a block of storage previously allocated with alloc.
pointer is a member type of allocator_traits.
n
Number of elements allocated in the allocation operation that allocated p.
size_type is a member type of allocator_traits.

Return value

none

This function shall not throw exceptions.

See also