BloombergLP::bdlcc::SharedObjectPool::SharedObjectPool

Same as the preceding overload, using the specified objectResetter.

Synopsis

Declared in <bdlcc_sharedobjectpool.h>

SharedObjectPool(
    CREATOR const& objectCreator,
    RESETTER const& objectResetter,
    int growBy = -1,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
objectCreatorcreator used to construct pooled objects
objectResetterresetter invoked when objects return to the pool
growByreplenishment increment or geometric seed (must not be 0)
basicAllocatorallocator used to supply memory