[#BloombergLP-bdlcc-ObjectPool-increaseCapacity]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/ObjectPool.adoc[ObjectPool]::increaseCapacity
:relfileprefix: ../../../
:mrdocs:

Create the specified `numObjects` objects and add them to this object pool&period; The behavior is undefined unless `0 &lt;&equals; numObjects`&period;

== Synopsis

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

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


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