Create an object pool that constructs objects using objectCreator.
Declared in <bdlcc_objectpool.h>
explicit
ObjectPool(
CREATOR const& objectCreator,
bslma::Allocator* basicAllocator = 0);
Same as the preceding overload, using the default growBy value.
| Name | Description |
|---|---|
| objectCreator | functor used to construct pooled objects |
| basicAllocator | allocator used to supply memory |