Allocate space for the specified n objects of type TYPE.
Declared in <bslma_stdtestallocator.h>
StdTestAllocator<TYPE>::pointer
allocate(
size_type n,
void const* hint = 0);
Allocate enough (properly aligned) space for the specified n objects of (template parameter) TYPE by calling allocate on the mechanism object. The optionally specified hint argument is ignored by this test allocator type. The behavior is undefined unless n <= max_size().
pointer to the allocated storage
| Name | Description |
|---|---|
| n | The number of objects for which to allocate space. |
| hint | An optional allocation hint (ignored). |