Share via


allocator_traits::deallocate Method

Static method that uses a specified allocator to deallocate a specified number of objects.

static void deallocate(Alloc al,
    pointer ptr, size_type count);

Parameters

  • al
    An allocator object.

  • ptr
    A pointer to the starting location of the objects to be deallocated.

  • count
    The number of objects to deallocate.

Remarks

This method calls al.deallocate(ptr, count).

This method throws nothing.

Requirements

Header: <memory>

Namespace: std

See Also

Reference

allocator::deallocate

allocator_traits Class