Allocate memory.
Declared in <bslma_allocatortraits.h>
[[nodiscard]]
constexpr
static
pointer
allocate(
_Alloc& __a,
size_type __n);
Calls a.allocate(n)
The return value should not be discarded.
| Name | Description |
|---|---|
| __a | An allocator. |
| __n | The number of objects to allocate space for. |