BloombergLP::bdlcc::ObjectPool::ObjectPool

Create an object pool that constructs objects using objectCreator.

Synopsis

Declared in <bdlcc_objectpool.h>

explicit
ObjectPool(
    CREATOR const& objectCreator,
    bslma::Allocator* basicAllocator = 0);

Description

Same as the preceding overload, using the default growBy value.

Parameters

NameDescription
objectCreatorfunctor used to construct pooled objects
basicAllocatorallocator used to supply memory