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

Reserve capacity for at least `numBlocks` blocks of the specified `size`&period;

== Synopsis

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

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

== Description

Reserve memory from this multipool to satisfy memory requests for at least the specified `numBlocks` having the specified `size` (in bytes) before the pool replenishes&period; If `size` is 0, this method has no effect&period; The behavior is undefined unless `size &lt;&equals; maxPooledBlockSize()` and `0 &lt;&equals; numBlocks`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *size*
| size in bytes of each block to reserve
| *numBlocks*
| minimum number of blocks to reserve
|===


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