Allocate uninitialized storage for n objects, optionally using hint.
Declared in <bslma_allocatortraits.h>
using Base::allocate;
Return a.allocate(n) or a.allocate(n, hint) from the underlying std::allocator_traits implementation.
| Name | Description |
|---|---|
| a | allocator that performs the allocation |
| n | number of objects to allocate storage for |
| hint | optional locality hint for the allocation |