Allocate space for the specified numElements objects of type TYPE.
Declared in <bsltf_stdtestallocator.h>
StdTestAllocator<TYPE>::pointer
allocate(size_type numElements);
Allocate enough (properly aligned) space for the specified numElements of type T. If the configured delegate allocator is unable to fulfill the allocation request, an exception (typically bsl::bad_alloc) will be thrown. The behavior is undefined unless numElements <= max_size().
a pointer to the allocated space for numElements objects
| Name | Description |
|---|---|
| numElements | number of TYPE objects for which to allocate space |