< cpp‎ | memory‎ | allocator
Defined in header <memory>
void deallocate( pointer p, size_type n );

Deallocates the storage referenced by the pointer p, which must be a pointer obtained by an earlier call to allocate(). The argument n must be equal to the first argument of the call to allocate() that originally produced p.

Calls ::operator delete(void*), but it is unspecified when and how it is called.

[edit] Parameters

p - pointer obtained from allocate()
n - number of objects earlier passed to allocate()

[edit] Return value


[edit] See also

allocates uninitialized storage
(public member function)
deallocates storage using the allocator
(public static member function of std::allocator_traits)