[#BloombergLP-bdlcc-SharedObjectPool-reserveCapacity]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SharedObjectPool.adoc[SharedObjectPool]::reserveCapacity
:relfileprefix: ../../../
:mrdocs:

Create enough objects to satisfy requests for at least the specified `growBy` objects before the next replenishment&period; The behavior is undefined unless `0 &lt;&equals; growBy`&period; Note that this method is different from `increaseCapacity` in that the number of created objects may be less than `growBy`&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;sharedobjectpool&period;h&gt;`

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


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