[#BloombergLP-bdlma-ConcurrentPoolAllocator-reserveCapacity] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/ConcurrentPoolAllocator.adoc[ConcurrentPoolAllocator]::reserveCapacity :relfileprefix: ../../../ :mrdocs: Reserve memory from this pool allocator to satisfy memory requests for at least the specified `numObjects` before the pool replenishes. 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. == Synopsis Declared in `<bdlma_concurrentpoolallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void reserveCapacity(int numObjects); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#