[#BloombergLP-bdlma-BlockList-allocate] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/BlockList.adoc[BlockList]::allocate :relfileprefix: ../../../ :mrdocs: Return the address of a contiguous block of memory of the specified `size` (in bytes). If `size` is 0, no memory is allocated and 0 is returned. The returned memory is guaranteed to be maximally aligned. == Synopsis Declared in `<bdlma_blocklist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void* allocate(xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#