BloombergLP::bdlma::ConcurrentPoolAllocator::reserveCapacity

Reserve capacity for at least numObjects objects from this allocator.

Synopsis

Declared in <bdlma_concurrentpoolallocator.h>

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

NameDescription
numObjectsminimum number of objects to reserve capacity for