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

Allocate a memory block of the configured object size&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
allocate();
----

== Description

Allocate a memory block of the `objectSize` specified at construction&period; Return the address of that block or 0 if the pool is exhausted (i&period;e&period;, `poolSize()` memory blocks have already been allocated from this pool)&period;

== Return Value

address of the allocated block, or 0 if the pool is exhausted


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