[#BloombergLP-bdlma-ConcurrentMultipool-allocate]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/ConcurrentMultipool.adoc[ConcurrentMultipool]::allocate
:relfileprefix: ../../../
:mrdocs:

Return the address of a contiguous block of maximally&hyphen;aligned memory of (at least) the specified `size` (in bytes)&period; If `size &gt; maxPooledBlockSize()`, the memory allocation is managed directly by the underlying allocator, and will not be pooled, but will be deallocated when the `release` method is called, or when this object is destroyed&period; If `size` is 0, no memory is allocated and 0 is returned&period;

== Synopsis

Declared in `&lt;bdlma&lowbar;concurrentmultipool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
allocate(xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] size);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
