[#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. == Synopsis Declared in `<bdlma_concurrentpoolallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void reserveCapacity(int numObjects); ---- == Description The behavior is undefined unless `0 <= numObjects`. Note that this operation has no effect unless block size was supplied at construction, or `allocate` was invoked. == Parameters [cols="1,4"] |=== | Name| Description | *numObjects* | minimum number of objects to reserve capacity for |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#