Return a block of memory having sufficient size and alignment to hold the specified n objects of value_type, allocated from the memory resource held by this allocator. Optionally specify a hint, which is ignored by this allocator type but theoretically used by other allocators as an aid for optimizing locality.
Synopsis
Declared in <bslma_bslallocator.h>
[[nodiscard]]
allocator<TYPE>::pointer
allocate(
size_type n,
void const* hint = 0);
Return Value
|
Note
|
The return value should not be discarded. |
Created with MrDocs