Ensure this pool can satisfy at least numObjects requests.
Synopsis
Declared in <bdlcc_objectpool.h>
void
reserveCapacity(int numObjects);
Description
Create enough objects to satisfy requests for at least the specified numObjects objects before the next replenishment. The behavior is undefined unless 0 <= numObjects. Note that this method is different from increaseCapacity in that the number of created objects may be less than numObjects.
Parameters
Name |
Description |
numObjects |
minimum number of objects to make available |
Created with MrDocs