[#BloombergLP-bdlma-ConcurrentPoolAllocator-reserveCapacity]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/ConcurrentPoolAllocator.adoc[ConcurrentPoolAllocator]::reserveCapacity
:relfileprefix: ../../../
:mrdocs:

Reserve capacity for at least `numObjects` objects from this allocator&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
reserveCapacity(int numObjects);
----

== Description

The behavior is undefined unless `0 &lt;&equals; numObjects`&period; Note that this operation has no effect unless block size was supplied at construction, or `allocate` was invoked&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numObjects*
| minimum number of objects to reserve capacity for
|===


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