Allocate storage for n objects, optionally using hint.
Declared in <bslma_allocatortraits.h>
static
pointer
allocate(
ALLOCATOR_TYPE& basicAllocator,
size_type n,
const_void_pointer hint);
Return basicAllocator.allocate(n, hint).
pointer to the allocated storage
| Name | Description |
|---|---|
| basicAllocator | allocator that performs the allocation |
| n | number of objects to allocate storage for |
| hint | optional locality hint for the allocation |