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

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;

== Synopsis

Declared in `&lt;bdlma&lowbar;multipool&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);
----


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