Return a newly allocated block of memory of (at least) size bytes.
Declared in <bdlma_concurrentpoolallocator.h>
virtual
void*
allocate(size_type size) override;
Return a newly allocated block of memory of (at least) the specified positive size (in bytes), and having alignment conforming to the platform requirement for any object having size bytes. If size is 0, a null pointer is returned with no effect. If the block size is not supplied at construction, then the size specified in the first call to this method fixes the block size. If size is greater than the value returned by blockSize, the allocation request will be satisfied directly by the external allocator supplied at construction (or the default allocator, if no allocator was supplied).
address of the newly allocated block, or a null pointer if size is 0
| Name | Description |
|---|---|
| size | number of bytes to allocate |