[#BloombergLP-bdlma-ConcurrentPoolAllocator-allocate-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/ConcurrentPoolAllocator.adoc[ConcurrentPoolAllocator]::allocate :relfileprefix: ../../../ :mrdocs: 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). == Synopses Declared in `<bdlma_concurrentpoolallocator.h>` 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). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void* xref:BloombergLP/bdlma/ConcurrentPoolAllocator/allocate-0f.adoc[allocate](xref:BloombergLP/bdlma/ConcurrentPoolAllocator/size_type.adoc[size_type] size) override; ---- [.small]#xref:BloombergLP/bdlma/ConcurrentPoolAllocator/allocate-0f.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] void* xref:BloombergLP/bslma/Allocator/allocate-034.adoc[allocate]( size_t __bytes, size_t __alignment = _S_max_align); ---- [.small]#xref:BloombergLP/bslma/Allocator/allocate-034.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#