BloombergLP::bsltf::StdStatefulAllocator::allocate

Allocate enough (properly aligned) space for the specified numElements of the (template parameter) type TYPE. If the underlying bslma::Allocator is unable to fulfill the allocation request, an exception (typically bsl::bad_alloc) will be thrown.

Synopsis

Declared in <bsltf_stdstatefulallocator.h>

TYPE*
allocate(bslma::Allocator::size_type numElements);