public static member function
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.
- Allocator object
allocator_type is an alias of allocator_traits's template parameter.
- Pointer to a block of storage previously allocated with alloc.
pointer is a member type of allocator_traits.
- Number of elements allocated in the allocation operation that allocated p.
size_type is a member type of allocator_traits.
This function shall not throw exceptions.